Files
munki/code/pkgtemplate/Scripts_app/preinstall

12 lines
415 B
Bash
Executable File

#!/bin/sh
# Replace any Managed Software Update.app bundle with a symlink to Managed
# Software Center.app
if [ -d "$3/Applications/Utilities/Managed Software Update.app" ] ; then
/bin/rm -r "$3/Applications/Utilities/Managed Software Update.app"
# make a symlink for the old MSU.app
/bin/ln -s "$3/Applications/Managed Software Center.app" \
"$3/Applications/Utilities/Managed Software Update.app"
fi