Re: Postflight Applescripts
Re: Postflight Applescripts
- Subject: Re: Postflight Applescripts
- From: Peter Bierman <email@hidden>
- Date: Tue, 18 Apr 2006 15:56:41 -0700
No, I want to know if you've tested your AppleScript outside of the
installer by executing it as root by hand using 'sudo'.
You do _not_ want to use 'sudo' in any installer script, since it can
be configured to always require a password, which would cause your
script to hang.
The reason for testing using 'sudo' is that there are only minimal
differences between running the executable yourself using 'sudo' and
how the installer runs it.
-pmb
At 6:17 PM -0400 4/18/06, Michael Kiaer wrote:
Not sure exactly what you mean by 'sudo /my/AppleScript'? The
Applescript is not wrapped in a shell script.
I suspect if it were, it would execute properly. I seem to recall
having worked around this issue by doing that before.
On Apr 18, 2006, at 5:45 PM, Peter Bierman wrote:
At 5:36 PM -0400 4/18/06, Michael Kiaer wrote:
So, foremost, I am interested in the general question: do
Applescripts as pre/postflight scripts in installer packages not
get the proper credentials passed from the package?
The postinstall executable (AppleScript, shell script, whatever) is
launched via a fork/exec from a UID 0 process.
I'm not sure about how an AppleScript typically executes. It's
possible that AppleScripts are always run through an interpreter
that strips some credentials.
Does 'sudo /your/AppleScript' work correctly?
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden