Files
munki/code/tools/pkgresources/Scripts_python/preinstall

11 lines
396 B
Bash
Executable File

#!/bin/sh
# we're going to install version 3.12
# 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 3.10 ; do
if [ -d "$3/usr/local/munki/Python.framework/Versions/$OLDVERS" ] ; then
/usr/bin/chflags -fR schg,uchg "$3/usr/local/munki/Python.framework/Versions/$OLDVERS"
fi
done