cybertunnel / Filevault-Reissue

This application prompts end users for username and password to automatically reissue a recovery key.
GNU General Public License v3.0
33 stars 4 forks source link

Postscript fails on Jamf Pro #9

Open sjurlohne opened 2 years ago

sjurlohne commented 2 years ago

I set up the postscript (just set the admin and password), packaged and deployed using Jamf Pro. The postscript defines the variable $app as "app="/var/tmp/Filevault Reissue.app/Contents/MacOS/Filevault Reissue"

But when deploying in Jamf it will install to a random tmp sandbox folder. I suspect this is why the postinstall script is failing, but i'm not sure.

Snippets from install.log:

PackageKit: Extracting file://localhost/Library/Application%20Support/JAMF/Downloads/Filevault-ReissueInstaller-FieldEditor.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/382D52EA-8ED2-410D-A57B-18C7997E24F9.activeSandbox/Root, uid=0)

PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.fd9htT/Scripts/com.github.cybertunnel.Filevault-Reissue.Installer.vqqbqh

./postinstall: 2022-08-04 11:33:39.800 Filevault Reissue[17530:79211] dataFromGeneratingCandidatesForSelectedRange received error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named mul-xpc (Apple)_OpenStep was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named mul-xpc (Apple)_OpenStep was invalidated: failed at lookup with error 3 - No such process.}

cybertunnel commented 2 years ago

So this is most likely due to the helper process not being spawned or installed properly.