0

I've been trying to add "official company Fonts" to my DeployStudio workflow imaging new Macs. I'm testing it a terminal and in the DeployStudio Runtime environment (like WinPE for PC).

Here’s the actual command:

find /Common/Fonts/ -type f -exec cp {} /System/Library/Fonts \;

The many fonts are in a folder structure that has many levels, hence the find command…

Each time I get a permission error using local admin or root user.

What am I missing? It's right in my face right?

  • 1
    You don't have to flatten the folder structure. You can copy a folder of fonts to /Library/Fonts or ~/Library/Fonts. – amdyes Aug 27 '19 at 3:03
3

/System/Library/Fonts is restricted with System Integrity Protection, since this folder is intended purely for macOS built-in first-party fonts.

Instead, choose one of the following locations depending on your intentions:

  • /Library/Fonts to apply to every user, existing and newly created.
  • ~/Library/Fonts to apply to the current user.
  • /Library/User Template/Non_localized/Library/Fonts to apply to new users.
0

Thanks everybody for all the quick aswers!

Looks like a simpler script did the trick:

cp -R /Volume/HDD/Fonts/ /Volume/HDD/Library/Fonts/

Have a good one!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .