homebysix-recipes icon indicating copy to clipboard operation
homebysix-recipes copied to clipboard

Zoom.munki postinstall script failing

Open ryonriley opened this issue 1 year ago • 2 comments

From the install logs (/var/log/install.log): 2023-06-05 15:12:01-04 MBP-2023 installd[908]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Zoom-5.14.10.19202.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Library/Managed%20Installs/Cache/Zoom-5.14.10.19202.pkg, PKInstallPackageIdentifier=us.zoom.xos, NSLocalizedDescription=An error occurred while running scripts from the package “Zoom-5.14.10.19202.pkg”.} { NSLocalizedDescription = "An error occurred while running scripts from the package \U201cZoom-5.14.10.19202.pkg\U201d."; NSURL = "file://localhost/Library/Managed%20Installs/Cache/Zoom-5.14.10.19202.pkg"; PKInstallPackageIdentifier = "us.zoom.xos";

2023-06-05 15:13:07-04 MBP-2023 package_script_service[3813]: ./postinstall: /tmp/PKInstallSandbox.2q4OQf/Scripts/us.zoom.xos.mQB8UT/postinstall: line 307: config_app: command not found

The failure appears to come from the postinstall script, specifically this line: https://github.com/autopkg/homebysix-recipes/blob/master/Zoom/scripts/postinstall#L307

ryonriley avatar Jun 23 '23 13:06 ryonriley

Looks like the postinstall script needs to be re-aligned with the ZoomITInstaller.pkg one. Or even better: removed. Do we still need a separate postinstall?

homebysix avatar Jun 24 '23 20:06 homebysix

Looks like the postinstall script needs to be re-aligned with the ZoomITInstaller.pkg one. Or even better: removed. Do we still need a separate postinstall?

It looks like the ZoomITInstaller.pkg that is downloaded from https://zoom.us/client/latest/ZoomInstallerIT.pkg - which is referenced by the parent recipe - has its own pre and postinstall script. So, a separate postinstall is ~~likely~~ not needed.

/edit I just tested this in my dev environment with a relatively simple Zoom.munki recipe and can confirm that installing with the built-in postinstall script worked as it should. A separate postinstall isn't necessary.

ryonriley avatar Jun 26 '23 13:06 ryonriley