site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AceNDJkJ16ZxgPj/EdukiQADk3wqpg== Thread-topic: postflight script failed User-agent: Microsoft-Entourage/11.3.3.061214 [Trying again using different return address...] I think the problem may lie in the first line of the script. ("#! /usr/bin/env ruby") You don't specify a full path to the ruby interpreter. You also don't appear to be modifying the environment with the /usr/bin/env invocation, so why go through that? Why not just set the first line to "#!/usr/bin/ruby" ? -- Steve Stockman Software Architect Consumer Products - Macintosh Symantec Corporation Office: 402-296-4026 Fax: 402-296-2026 Email: steve_stockman@symantec.com www.symantec.com
From: Fritz Anderson <FRITZA@MANOVERBOARD.ORG> Date: Wed, 2 May 2007 14:20:54 -0500 To: <installer-dev@lists.apple.com> Subject: postflight script failed
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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/steve_stockman%40symant... .com
This email sent to steve_stockman@symantec.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Steve Stockman