• 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
A question about locations within a package, vis-à-vis postinstall script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A question about locations within a package, vis-à-vis postinstall script


  • Subject: A question about locations within a package, vis-à-vis postinstall script
  • From: "OSullivan, Steve" <email@hidden>
  • Date: Tue, 21 Oct 2008 11:19:24 -0700
  • Thread-topic: A question about locations within a package, vis-à-vis postinstall script

Good morning all,

I am creating an installer package using PackageMaker 3.0.2 from the command
line.

I am running a postinstall script that overall seems to work well (it is
triggered and most of its commands are carried out.)

The problem lies in the fact that I am trying to copy a launch daemon plist
from the package to /Library/LaunchDaemons, and I cannot seem to find the
proper syntax to tell the script where the launch daemon plist is located in
the installer.

Things are laid out like this (examining the package with Pacifist):

engine.pkg
    pkgbaseengine.pkg
        scripts
            postinstall
    Resources
        launch daemon plist

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.

I really appreciate any and all thoughts!

TIA,

Steve O'Sullivan

 _______________________________________________
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

  • Follow-Ups:
    • Re: A question about locations within a package, vis-à-vis postinstall script
      • From: Greg Neagle <email@hidden>
  • Prev by Date: Re: [installer-dev] N00b? Why is the App not in /Applications?
  • Next by Date: Re: A question about locations within a package, vis-à-vis postinstall script
  • Previous by thread: Re: [installer-dev] N00b? Why is the App not in /Applications?
  • Next by thread: Re: A question about locations within a package, vis-à-vis postinstall script
  • Index(es):
    • Date
    • Thread