mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
Add preinstall script to app package to clean up old Managed Software Update.app residue
This commit is contained in:
@@ -501,12 +501,15 @@ for pkg in core admin app launchd; do
|
||||
case $pkg in
|
||||
"app")
|
||||
ver="$MSUVERSION"
|
||||
scripts="--scripts \"${MUNKIROOT}/code/pkgtemplate/Scripts_app\""
|
||||
;;
|
||||
"launchd")
|
||||
ver="$LAUNCHDVERSION"
|
||||
scripts=""
|
||||
;;
|
||||
*)
|
||||
ver="$VERSION"
|
||||
scripts=""
|
||||
;;
|
||||
esac
|
||||
echo "Packaging munkitools_$pkg-$ver.pkg"
|
||||
@@ -531,6 +534,7 @@ for pkg in core admin app launchd; do
|
||||
--ownership preserve \
|
||||
--info "$PKGTMP/info_$pkg" \
|
||||
--component-plist "${PKGTMP}/munki_${pkg}_component.plist" \
|
||||
${scripts} \
|
||||
"$PKGDEST/munkitools_$pkg-$ver.pkg"
|
||||
|
||||
if [ "$?" -ne 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user