Re: Run flat package postscript as root
It's probably related to the use of the "current user/user home directory" domain/install Destination. On Wed, Aug 22, 2012 at 9:44 AM, Harald Dersch <Harald.Dersch@vasco.com> wrote:
Hello, I'm currently developing a setup targeting flat packages. The setup installs a browser plug-in to the user home folder (via current user domain), but needs to change a global registration. The registration is done by an executable included as an additional resource in the setup and supposed to be launched by the postinstallation script.
I did a project with one package where I enabled "Require admin password for installation". I get a credential prompt, and the plug-in is correctly installed to the current user folder. However, postinstallation is not executed as root, no matter which credentials I provide, hence the executable fails. If I try to launch the executable explicitly using sudo, I get "sudo: no tty present and no askpass program specified" (in the log).
It doesn't matter, if I use PackageMaker or sudre's Packages.
From the Packages user manual (Section "Defining a package pre- and post-installation scripts"): " >> If the installation process requests an admin password, the pre- and post-installation scripts will be run as root." -> Obviously this is wrong, or do I miss something?
Thanks for any input, Harry
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/dev.iceberg%40gmail.co...
This email sent to dev.iceberg@gmail.com
-- Packaging Resources - http://s.sudre.free.fr/Packaging.html _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre