• 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
Shell scripts not executing correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shell scripts not executing correctly


  • Subject: Shell scripts not executing correctly
  • From: Cormac Daly <email@hidden>
  • Date: Thu, 15 Mar 2007 11:21:15 +0000

Hi List,

I'm using PackageMaker to deliver a metapackage and wish to execute shell scripts to write certain keys and values to the defaults system at various stages of the installation. The scripts are executing, however the scripts will not write to the defaults system - here is the postflight script (currently just used for testing) for one of my packages:

#!/bin/sh
echo "***Application postflight script***"
MYDEFAULTS=`whereis defaults`
echo DEFAULTS IS $MYDEFAULTS
defaults write com.domain.appnameĀ "installertestkeyPOSTFLIGHT" "installerteststringPOSTFLIGHT"
open "$1/Contents/Resources/DemoInstaller.app"

I know PackageMaker is executing the script as DemoInstaller.app is being launched, but the defaults system is not being affected - if I run the script directly from the terminal using ./postflight, the defaults system IS written to. Anybody got any suggestions?

Many thanks.

Cormac


 _______________________________________________
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: Shell scripts not executing correctly
      • From: Scott Russell <email@hidden>
  • Prev by Date: Software for creating installation/activation by serial/update of my programs on Windows and Mac
  • Next by Date: Re: Shell scripts not executing correctly
  • Previous by thread: Re: Software for creating installation/activation by serial/update of my programs on Windows and Mac
  • Next by thread: Re: Shell scripts not executing correctly
  • Index(es):
    • Date
    • Thread