Files
munki/code/tools/pkgresources/Scripts_launchd/postinstall
2025-09-11 14:21:13 -07:00

18 lines
546 B
Bash
Executable File

#!/bin/sh
#
# this postinstall should run installhelper in the background, with it then waiting until
# managedsoftwareupdate isn't running and then (re)load Munki's launchd items as needed
#
# Only execute postinstall actions if we're installing on a live system.
if [ "$3" = "/" ]
then
installHelper='/usr/local/munki/libexec/installhelper'
if [ -f "${installHelper}" ] ; then
/bin/echo "Loading ${installHelper}..."
"${installHelper}" launchd
else
/bin/echo "Cannot locate: ${installHelper}..."
fi
fi