mirror of
https://github.com/munki/munki.git
synced 2026-02-06 23:30:03 -06:00
Adjust Python pkg scripts to work properly when package is installed to a volume other than the boot volume.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# undo the removal prevention done in preinstall
|
||||
/usr/bin/chflags -fR noschg,nouchg /usr/local/munki/Python.framework/Versions/3.*
|
||||
/usr/bin/chflags -fR noschg,nouchg "$3/usr/local/munki/Python.framework/Versions/"3.*
|
||||
@@ -4,7 +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
|
||||
if [ -d "/usr/local/munki/Python.framework/Versions/$OLDVERS" ] ; then
|
||||
/usr/bin/chflags -fR schg,uchg /usr/local/munki/Python.framework/Versions/$OLDVERS
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user