Files
munki/code/pkgtemplate/Scripts_app/preinstall
Greg Neagle 05dae35e23 Revert "Merge pull request #502 from munki/msulink"
This reverts commit 6bb4936be8, reversing
changes made to c2239c5de8.
2015-08-19 12:03:07 -07:00

13 lines
505 B
Bash
Executable File

#!/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