From 9c3d199ff316015f43339c78f1bb2da7c5b7905b Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Thu, 18 Sep 2025 16:11:26 -0700 Subject: [PATCH] Update autorun pkg postinstall script (simpler now that supervisor has been removed) --- code/tools/pkgresources/Scripts_autorun/postinstall | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/code/tools/pkgresources/Scripts_autorun/postinstall b/code/tools/pkgresources/Scripts_autorun/postinstall index 5951d8e2..416b8e1d 100755 --- a/code/tools/pkgresources/Scripts_autorun/postinstall +++ b/code/tools/pkgresources/Scripts_autorun/postinstall @@ -1,9 +1,6 @@ #!/bin/sh -# use launchctl to submit a job to run managedsoftwareupdate -# so that the script returns before the job finishes and ending -# the installer task does not end the managedsoftwareupdate run -# (It's quite possible that `/usr/local/munki/managedsoftwareupdate --auto &` -# would work as well!) +# use launchctl to start a background check/install immediately instead +# of waiting for the StartInterval -/bin/launchctl submit -l com.googlecode.munki.autorun -- /usr/local/munki/managedsoftwareupdate --auto \ No newline at end of file +/bin/launchctl start com.googlecode.munki.managedsoftwareupdate-check \ No newline at end of file