Bug fix for Python preinstall script

This commit is contained in:
Greg Neagle
2023-03-21 09:41:34 -07:00
parent 144cb66b6e
commit 42feda2204
@@ -4,5 +4,7 @@
# prevent installer from removing a version currently in use
# (must update this script when we move to a new Python version)
for OLDVERS in 3.7 3.8 3.9 ; do
/usr/bin/chflags -fR schg,uchg /usr/local/munki/Python.framework/Versions/$OLDVERS
done
if [ -d "/usr/local/munki/Python.framework/Versions/$OLDVERS" ] ; then
/usr/bin/chflags -fR schg,uchg /usr/local/munki/Python.framework/Versions/$OLDVERS
fi
done