Command line help

ekarazhov
New Contributor III

Hello this should be fairly simple, but i am new to JAMF and i can't seem to figure out the issue.
I am trying to do upgrade from HighSierra to Mojave. I have downloaded and cached the installer to Application folder. Created a second policy and running the following command under Files and Processes: /Application/Install macOS Mojave.app/Contents/Resources/startosinstall --agreetolicense

Getting the following error message:
Executing Policy Install Cached Mojave
Error: The package (Install macOS Mojave 10.14.6.pkg) could not be found.
Running command /Application/Install macOS Mojave.app/Contents/Resources/startosinstall --agreetolicense...
Result of command:
/bin/sh: /Application/Install macOS Mojave.app/Contents/Resources/startosinstall: No such file or directory

1 ACCEPTED SOLUTION

atomczynski
Valued Contributor

In your syntax do you specify /Applications

Here is what I suggest:
/Applications/Install macOS Mojave.app/Contents/Resources/startosinstall --agreetolicense --nointeraction &
or
/Applications/Install macOS Mojave.app/Contents/Resources/startosinstall --nointeraction &

View solution in original post

1 REPLY 1

atomczynski
Valued Contributor

In your syntax do you specify /Applications

Here is what I suggest:
/Applications/Install macOS Mojave.app/Contents/Resources/startosinstall --agreetolicense --nointeraction &
or
/Applications/Install macOS Mojave.app/Contents/Resources/startosinstall --nointeraction &