setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
246 stars 54 forks source link

Validation only mode #44

Closed SirDrSpiderpig closed 1 year ago

SirDrSpiderpig commented 1 year ago

We have techs build our Macs instead of users for security concerns. At the end of the build if any issues came up they need to resolve it via self service. After issues are resolved, they run another test to ensure everything is installed before deploying to the user.

Since Setup Your Mac has a validation metholody it would be nice to have an option to run the build but instead of installing anything, it just validates that everything is installed. That way the tech can run that and validate that everything was installed correctly after fixing some issues.

dan-snelson commented 1 year ago

Greetings, @SirDrSpiderpig!

Does it not already work this way now?

If you re-run SYM, won't it show "Previously Installed" for the apps which are, er, already installed?

dan-snelson commented 1 year ago

Which version of SYM are you running? (Please feel free to DM me on the Mac Admins Slack: @dan-snelson.)

SirDrSpiderpig commented 1 year ago

Was testing 1.7. Didn't test the previously installed feature. Guess I could create a policy without the welcome screen and test that. Thanks.

dan-snelson commented 1 year ago

Thanks for confirming.

Please upgrade to (at least) 1.9.0.

SirDrSpiderpig commented 1 year ago

Just downloaded 1.9.0 and ran it and welcome dialog isn't coming up and in the logs I see: "execution error: Error: SyntaxError: JSON Parse error: Unexpected identifier "JSON" (-27000)

Do you see the same when you run yours? trying to customize the welcome window but never pops up.

drtaru commented 1 year ago

@SirDrSpiderpig Feel free to join us in the MacAdmins slack in #setup-your-mac if possible.

Sounds like you have malformed JSON.

dan-snelson commented 1 year ago

Thanks for reporting this, @SirDrSpiderpig.

Does a time-stamped version work as expected?

From Troubleshooting:

timestamp=$( date '+%Y-%m-%d-%H%M%S' ) ; curl -o ~/Downloads/Setup-Your-Mac-via-Dialog-$timestamp.bash https://raw.githubusercontent.com/dan-snelson/Setup-Your-Mac/main/Setup-Your-Mac-via-Dialog.bash ; sudo bash ~/Downloads/Setup-Your-Mac-via-Dialog-$timestamp.bash