Add postinstall script to Python pkg that removes older versions from the framework and ensures the python symlink is removed. Addresses #1010"

This commit is contained in:
Greg Neagle
2020-08-10 10:41:05 -07:00
parent a60e90d5a8
commit 19b5555d7e
3 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/sh
# removes old versions when installing/upgrading the Python framework.
# will need to be updated if/when we move to Python 3.9
/bin/rm -rf "$3/usr/local/munki/Python.framework/Versions/3.7"
/bin/rm -f "$3/usr/local/munki/python"