Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom.munki postinstall script failing #594

Open
ryonriley opened this issue Jun 23, 2023 · 2 comments
Open

Zoom.munki postinstall script failing #594

ryonriley opened this issue Jun 23, 2023 · 2 comments

Comments

@ryonriley
Copy link

ryonriley commented Jun 23, 2023

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

@homebysix
Copy link
Member

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?

@ryonriley
Copy link
Author

ryonriley commented Jun 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants