Last active
January 31, 2018 20:22
-
-
Save jmahlman/b45cab1a5514ed33ea6e5556b23026e2 to your computer and use it in GitHub Desktop.
script to check and install appleloops.py from jamf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! -f "/usr/local/bin/appleloops" ]; then | |
echo "Installing Apple-Loops-Install script from JSS" | |
/usr/local/jamf/bin/jamf policy -event apple-loops-installer | |
caffeinate -i /usr/local/bin/appleloops --mute-progress-bar --deployment $4 --pkg-server http://url.to.folder/appleloops | |
if [ ! -f "/usr/local/bin/appleloops" ]; then # Did the install work? | |
echo "Unable to install Apple-Loops-Install script, aborting!" | |
exit 1 | |
fi | |
else | |
caffeinate -i /usr/local/bin/appleloops --mute-progress-bar --deployment $4 --pkg-server http://url.to.folder/appleloops | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment