mirror of
https://github.com/munki/munki.git
synced 2026-01-06 06:29:56 -06:00
Build app pkg with preinstall script
This commit is contained in:
13
code/pkgtemplate/Scripts_app/preinstall
Executable file
13
code/pkgtemplate/Scripts_app/preinstall
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# remove any Managed Software Update.app bundle since the installer
|
||||
# won't replace a bundle with a symlink, leading to yucky stuff like
|
||||
# "/Applications/Utilities/Managed Software Update.app 1"
|
||||
|
||||
if [ -d "$3/Applications/Utilities/Managed Software Update.app" ] ; then
|
||||
/bin/rm -r "$3/Applications/Utilities/Managed Software Update.app"
|
||||
fi
|
||||
|
||||
if [ -d "$3/Applications/Utilities/Managed Software Update.app 1" ] ; then
|
||||
/bin/rm -r "$3/Applications/Utilities/Managed Software Update.app 1"
|
||||
fi
|
||||
Reference in New Issue
Block a user