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
• 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
• 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?