Skip to main content

Hello,

I am trying to follow this guide from JAMF: https://www.evernote.com/shard/s398/sh/bec8a262-e33d-4ad9-80fa-05b939db6d8d/f4ca396a63caa510

I am using the script noted here: https://www.evernote.com/shard/s398/sh/bec8a262-e33d-4ad9-80fa-05b939db6d8d/f4ca396a63caa510/res/9163d1d7-3bbf-4e2f-b70a-0cd447c749a1/startosinstall.sh

I got everything else working so far (you do need another policy to place the .dmg in the applications folder that the article neglects to tell you). I would like the script to force the restart instead of being "soft". I tested it and found that any open application will stop the upgrade.

Just need it to forcibly and immediately preform the restart.

Thanks.

Here is the script:

#!/bin/bash
/Applications/Install macOS Sierra.app/Contents/Resources/startosinstall --applicationpath "/Applications/Install macOS Sierra.app" --volume $1 --rebootdelay 30 --nointeraction
killall "Self Service"

Thank you @Rosko for the effort and support you are putting into your script.

I am in the process of trying to deploy High Sierra via Self Service and was stuck for the longest time putting in the user variables.

It turns out, every time I tried to put in /Applications/Install macOS High Sierra.app in variable $4, the JSS would give an error and tell me to check the logs. Checking the logs, I find:

QueryException: Data too long for column 'parameter_1' at row 1

I presume this is MySQL barking at me.

Sure enough, if I put in a shorter path it works.

I am now trying it with the string hard-coded into the script.

Anybody else have issues with the user variables?