Created
July 14, 2016 00:44
-
-
Save stevewood-tx/9b16c16a5c7686f20fef3036fb22ea2b to your computer and use it in GitHub Desktop.
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
# check for jamf binary | |
/bin/echo "Checking for JAMF binary" | |
/bin/date | |
if [[ "$jamf_binary" == "" ]] && [[ -e "/usr/sbin/jamf" ]] && [[ ! -e "/usr/local/bin/jamf" ]]; then | |
jamf_binary="/usr/sbin/jamf" | |
elif [[ "$jamf_binary" == "" ]] && [[ ! -e "/usr/sbin/jamf" ]] && [[ -e "/usr/local/bin/jamf" ]]; then | |
jamf_binary="/usr/local/bin/jamf" | |
elif [[ "$jamf_binary" == "" ]] && [[ -e "/usr/sbin/jamf" ]] && [[ -e "/usr/local/bin/jamf" ]]; then | |
jamf_binary="/usr/local/bin/jamf" | |
fi | |
## JSS Policies for installing software | |
## Duplicate each block for the number of policies you need to run at post imaging time | |
/bin/echo "Installing <change to name of software>" | |
/bin/date | |
${jamf_binary} policy -id 1 # MAKE SURE TO SET TO THE CORRECT POLICY ID # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment