have a script that checks if "/Applications/Install macOS Catalina.app" is installed.
eventually after my checks, it calls a function that uses jamfHelper to provide some visuals and dialog boxes for the user.
FUNCTION BELOW (installCATALINAprompt)
popup=`/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType hud -title "$title" -description "$message" -button1 "Update" -button2 "Cancel" -defaultButton 1 -cancelButton 2 -timeout 3600 -countdown -alignCountdown center -icon "$icon"` #"$icon"` #> /dev/null 2>&1 &
# 0 means default so if a user doesnt respond OR clicks "update" then the process will start
if [[ "$popup" == "0" ]]; then
# Caffeinate to ensure machine is running without sleeping/hibernating/etc
/usr/bin/caffeinate -dis &
caffeinatePID=$!
disown
/bin/echo "Commence upgrade"
#Launch jamfHelper - second screen - full screen
catalinaICON="/Applications/Install macOS Catalina.app/Contents/Resources/InstallAssistant.icns"
/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType fs -description "$description" -heading "Please wait as we prepare your computer for macOS Catalina" -icon "/Applications/Install macOS Catalina.app/Contents/Resources/InstallAssistant.icns" &
# /Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType fs -description "$description" -heading "Please wait as we prepare your computer for the macOS Catalina" -icon "$catalinaICON" &
# Command to start the OS upgrade
/Applications/Install macOS Catalina.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps
sleep 10
{ /bin/kill "${caffeinatePID}"; } 2>/dev/null
{ /usr/bin/killall jamfHelper; } 2>/dev/null
/bin/echo "Upgrade complete"
description2="macOS Catalina upgrade complete.
Please click Restart Now to reboot your machine now otherwise your machine will automatically reboot in one hour."
popup2=`/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType hud -description "$description2" -heading "LendingClub IT" -icon "/Library/LC/logo.icns" -button1 "Restart Now" -defaultButton 1 -timeout 3600 -countdown -lockHUD -alignCountdown center`
if [[ "$popup2" == "0" ]]; then
/bin/echo "kicking off restart now"
shutdown -r +1 &
fi
# 2 means quit, which is the cancel button
else [[ "popup" == "2" ]]
/bin/echo "User cancelled upgrade"
exit 0
fi
thats the part that does it as im calling that particular function
this is the part that runs the script itself
if [[ $deploymentTYPE = "prompt" ]]; then
/bin/echo "Prompting user about policy"
installCATALINAprompt
/bin/echo "macOS Catalina installed. Rebooting"
{ /usr/bin/killall jamfHelper; } 2>/dev/null
fi
problem is, machine does the installer for catalina with no issues, however, theres nothing in the logs for my policy.
id like to see the logs if nothing else than to see that it went through properly, but all it does it update the machine then removes it from the policy due to the smart group
@mm2270 cuz i know ure a superstar :)