We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have created this policy and it seems to run fine, but it doesn't seem to quit self-service.
I'm currently testing this on line 189
declare -a startosinstallOptions=(--agreetolicense --forcequitapps --nointeraction && sleep 10 && osascript -e 'tell application "Self Service" to quit')
I add this right before this command at the end of the script.
sudo killall 'Self Service'
startosinstallCommand=""$OSInstaller/Contents/Resources/startosinstall" ${startosinstallOptions[*]} >> $osinstallLogfile 2>&1 &" /bin/echo "Running a command as '$startosinstallCommand'..." eval "$startosinstallCommand"
Again this all could just be a user error.
The text was updated successfully, but these errors were encountered:
This is a duplicate issue #135. It is addressed #140. Could you share us condition of failure detail?
Sorry, something went wrong.
The new issue stems from the discovery that the --forcequitapps flag is no longer quitting Self Service when used with macOS 11 Big Sur installers. https://www.jamf.com/jamf-nation/discussions/37297/big-sur-upgrade-bash-command
Those that are running startosinstall directly have resorted to leveraging AppleScript to facilitate the quit command as a workaround.
I did test this on macOS High Sierra and same issue with Self Service not quitting.
No branches or pull requests
I have created this policy and it seems to run fine, but it doesn't seem to quit self-service.
I'm currently testing this on line 189
declare -a startosinstallOptions=(--agreetolicense --forcequitapps --nointeraction && sleep 10 && osascript -e 'tell application "Self Service" to quit')
I add this right before this command at the end of the script.
sudo killall 'Self Service'
Begin Upgrade
startosinstallCommand=""$OSInstaller/Contents/Resources/startosinstall" ${startosinstallOptions[*]} >> $osinstallLogfile 2>&1 &"
/bin/echo "Running a command as '$startosinstallCommand'..."
eval "$startosinstallCommand"
Again this all could just be a user error.
The text was updated successfully, but these errors were encountered: