Update Python cleanup script to remove version 3.9 from the framework if it's still there

This commit is contained in:
Greg Neagle
2022-04-28 19:12:33 -07:00
parent f323f12174
commit 1c19f97928

View File

@@ -2,15 +2,15 @@
set -e
# remove old python symlink if it exists
if [ -f "/usr/local/munki/python" ]; then
/bin/rm /usr/local/munki/python
fi
if [ -d "/usr/local/munki/Python.framework/Versions/3.7" ]; then
/bin/rm -r /usr/local/munki/Python.framework/Versions/3.7
fi
if [ -d "/usr/local/munki/Python.framework/Versions/3.8" ]; then
/bin/rm -r /usr/local/munki/Python.framework/Versions/3.8
fi
# sometimes old versions are left behind in the framework. remove them.
for OLDVERS in 3.7 3.8 3.9 ; do
if [ -d "/usr/local/munki/Python.framework/Versions/${OLDVERS}" ]; then
/bin/rm -r "/usr/local/munki/Python.framework/Versions/${OLDVERS}"
fi
done