Switch app_usage pkg scripts to /bin/sh from /bin/bash

This commit is contained in:
Greg Neagle
2024-02-28 10:25:11 -08:00
parent 0954498f5d
commit 47992f885b
2 changed files with 4 additions and 4 deletions
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Lovingly adapted from Per Olofsson
# https://github.com/MagerValp/Scripted-Mac-Package-Creation/blob/master/scripts/postinstall
@@ -7,7 +7,7 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin
# Execute postinstall actions if we're installing on a live system.
# This is useful for loading launch daemons and agents.
if [ "$3" == "/" ]; then
if [ "$3" = "/" ]; then
# Run postinstall actions for root.
launchctl bootstrap system/ /Library/LaunchDaemons/com.googlecode.munki.appusaged.plist
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Lovingly adapted from Per Olofsson
# https://github.com/MagerValp/Scripted-Mac-Package-Creation/blob/master/scripts/postinstall
@@ -7,7 +7,7 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin
# Execute preinstall actions if we're installing on a live system.
# This is useful for unloading launch daemons and agents.
if [ "$3" == "/" ]; then
if [ "$3" = "/" ]; then
# Run preinstall actions for root.
if launchctl print system/munki.app_usage_monitor > /dev/null 2>&1 ; then