• 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: postflight script failed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: postflight script failed


  • Subject: Re: postflight script failed
  • From: Mike <email@hidden>
  • Date: Wed, 02 May 2007 14:45:13 -0700

Did you remove any extension from the script's filename?

The script needs to be named "postflight", not "postflight.sh" for example.

Mike

Fritz Anderson wrote:
I have in my package a script named 'postflight'. It appears in the Contents/Resources directory of the package. It has the executable bits set. It is a Ruby script, with the first line being #! /usr/bin/env ruby .

Whenever I try the installer, the only error appearing in the log is this:

<date> <hostname> : Install failed: The following install step failed: run postflight script for <myPackageName>

The postflight script indeed has had none of its intended effects, even when I reduce it to deleting the installed payload. I have lots of debugging prints (both to stdout and stderr), but nothing from the script — nor prints, not scripting errors — shows up in the install log or the console.

The task is to take a target directory installed in /Users/Shared, recursively set the ownership of a subdirectory to ENV['USER'] ($USER for shell fans), and move the subdirectory to ~/Library/Application\ Support, if such a folder does not already exist. It then deletes the wrapper directory from /Users/Shared.

The script runs correctly in the command line, from within the pkg, and returns 0.

What am I doing wrong?

    — F

_______________________________________________
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


_______________________________________________
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: postflight script failed
      • From: Fritz Anderson <email@hidden>
References: 
 >postflight script failed (From: Fritz Anderson <email@hidden>)

  • Prev by Date: postflight script failed
  • Next by Date: Re: postflight script failed
  • Previous by thread: postflight script failed
  • Next by thread: Re: postflight script failed
  • Index(es):
    • Date
    • Thread