• 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: Fritz Anderson <email@hidden>
  • Date: Wed, 2 May 2007 16:59:59 -0500


On May 2, 2007, at 4:45 PM, Mike wrote:

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

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

Yes, indeed I did. In fact, the script in question has always been named "postflight," and has never had any extension. (And I just now checked in a Finder Info window to verify this.)


Anyway, if the script had the wrong name, surely Installer.app would never notice it at all, rather than log a message about failing to run it?

An off-list correspondent suggests that a Ruby script — even in the form of an executable beginning with "#! /usr/bin/env ruby" — might be illegal in a postflight role. I doubt this, but is it possible?

	— F


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>
...

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

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