Skip to content
New issue

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

Self Service won't quit when ran from self service #158

Open
kylejericson opened this issue Dec 3, 2020 · 3 comments
Open

Self Service won't quit when ran from self service #158

kylejericson opened this issue Dec 3, 2020 · 3 comments

Comments

@kylejericson
Copy link

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.

@taniguti
Copy link
Collaborator

taniguti commented Dec 3, 2020

This is a duplicate issue #135. It is addressed #140.
Could you share us condition of failure detail?

@UESCDurandal
Copy link

UESCDurandal commented Dec 9, 2020

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.

@kylejericson
Copy link
Author

I did test this on macOS High Sierra and same issue with Self Service not quitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants