From b6d0e304801853ec6b2d62950dba65dc5004cfb7 Mon Sep 17 00:00:00 2001 From: Stephen Boyle Date: Fri, 21 Jul 2023 09:45:03 -0400 Subject: [PATCH] Update munkireport-runner --remove-python2 (#1522) Also remove receipt --- .../payload/usr/local/munkireport/munkireport-runner | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner b/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner index 76ed01037..39e8557b3 100755 --- a/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner +++ b/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner @@ -106,6 +106,10 @@ def main(): os.remove("/usr/local/munkireport/munkireport-python2") if os.path.isdir("/Library/MunkiReport/Python.framework/Versions/2.7/"): shutil.rmtree("/Library/MunkiReport/Python.framework/Versions/2.7/", ignore_errors=True) + if os.path.isfile("/private/var/db/receipts/com.github.munkireport-python2.bom"): + os.remove("/private/var/db/receipts/com.github.munkireport-python2.bom") + if os.path.isfile("/private/var/db/receipts/com.github.munkireport-python2.plist"): + os.remove("/private/var/db/receipts/com.github.munkireport-python2.plist") reportcommon.display_detail('Complete') print ('Complete') else: