0

We want to deploy a script 'silently' across all mac machines in organization. We have created a bash script that will run using launchd agent. We need to deploy the launchd agent and script on all macOS machines. Some instructions are needed during installation:

• The bash script script1 should be added to folder /Library

• Read and execute permissions should be added. Manually it can be done by running the command: sudo chmod 511 /Library/script1.

• The Agent com.script1.plist should be added to folder /Library/LaunchAgents.

• Permission should be updated : sudo chmod 644 /Library/LaunchAgents/com.script1.plist.

Can you please advise how to package all of this and distribute on all machines silently?

  • 1
    What kind of administrative access/control do you have on these computers? – Gordon Davisson Jun 16 at 6:34
  • Also, putting a script directly into /Library might cause problems with future OS upgrades. User-supplied commands should get installed in /usr/local/bin. – nohillside Jun 16 at 7:48
  • @Gordon: I have full admin rights – ybatsh Jun 16 at 11:19

You must log in to answer this question.

Browse other questions tagged .