Files
munki/code/tools/pkgresources/Scripts_launchd/postinstall
macmule d746c046cb Changes made to installhelper and make_munki_pkg.sh (#1216)
* Update installhelper

• Amended the user bootout and bootstrap commands to not be ran via `launchctl asuser`

* Update MainMenu.xib

• Centered the MunkiStatus.app window icon
• Changed the icon from AppIcon to NSApplicationIcon (which then allows for changing the icon via NSWorkspace's setIcon)

* Corrections to installhelper

* Update installhelper

---------

Co-authored-by: Greg Neagle <Gregneagle@mac.com>
2024-05-02 08:04:22 -07:00

19 lines
540 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/installhelper'
if [ -f "${installHelper}" ]
then
/bin/echo "Loading ${installHelper}..."
"${installHelper}" launchd
else
/bin/echo "Cannot locate: ${installHelper}..."
fi
fi