RE: A question about locations within a package
RE: A question about locations within a package
- Subject: RE: A question about locations within a package
- From: "Aaron London" <email@hidden>
- Date: Tue, 21 Oct 2008 14:35:09 -0400
- Thread-topic: A question about locations within a package
>>
In my postinstall script, I am using the following line to try and place
the
launch daemon plist in the appropriate place which so far fails:
sudo ditto ../Resources/com.company.launchd.engine_osx.plist
/Library/LaunchDaemons/
As of right now, I do not know how to properly identify the starting
location of the launch daemon to be able to copy it into the
/Library/LaunchDaemons directory.
<<
First of all, why not install the launch daemon plist as part of the
payload. Just put the file at <payload
root>/Library/LaunchDaemons/com.company.launchd.engine_osx.plist. Or
create a separate component package that installs the file to the
component root /Library/LaunchDaemons.
To figure out your cwd in the postinstall script, just add an "echo
`pwd`" before the ditto call. It should probably be "sudo ditto
Contents/Resources/ com.company.launchd.engine_osx.plist
/Library/LaunchDaemons" as I seem to recall that scripts inherit the
bundle root as their cwd.
-A
_______________________________________________
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