• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: A question about locations within a package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Setting up installation requirements
  • Next by Date: Re: A question about locations within a package, vis-à-vis postinstall script
  • Previous by thread: Setting up installation requirements
  • Next by thread: Destination Select intermittently displays
  • Index(es):
    • Date
    • Thread