Add pre and postinstall scripts to Python component package to prevent active Python from being removed during an upgrade

This commit is contained in:
Greg Neagle
2023-03-21 09:07:20 -07:00
parent e5eda229ae
commit f275bc9267
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
# currently does nothing at all
exit 0
# undo the removal prevention done in preinstall
/usr/bin/chflags -fR noschg,nouchg /usr/local/munki/Python.framework/Versions/3.*