Skip to main content
Question

Issue with running a "before" script in a policy (triggers reboot prematurely)

  • November 18, 2010
  • 2 replies
  • 17 views

donmontalvo
Forum|alt.badge.img+36

We're having a problem with a policy we created that does the following:

  1. Runs a "before" script (zip and then remove /Library/ColorSync/Profiles folder).
  2. Installs AAMEE generated uber-package (13 GB *.pkg).
  3. Reboots computer

The script has "exit 0" at the end, which should allow the policy to then run the pkg. Rolling over the policy shows the above happens in order. Well, for some reason, the computer is rebooting after the script runs. Is anyone else seeing this issue, where running a "before" script on a policy that is set to reboot the computer doesn't install the policy, but instead runs the script and reboots?

Thanks,
Don

2 replies

Forum|alt.badge.img+31
  • Honored Contributor
  • November 18, 2010

maybe you should use the run command to reboot, as the run command should run after the policy is executed, ie at the end.


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • November 19, 2010

Thanks, worked like a charm!