RE: A question about locations within a package
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AckzqeVoaQ9kZhKuQeeEWv0iG3ymXwAARJnQ 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Aaron London