Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment variable is not read in package postflight script




On Feb 5, 2008, at 12:16 PM, Jeff Vandehey wrote:

When I take this same script, and set it up as a post-flight script on a package, it does NOT read the $HOST variable. I get the email fine, but I get just a blank space where the $HOST variable should list information. Since the package is run as root, the email comes from System Administrator. The script is below. What do I need to add to it, to make it so I can read this environment variable?

What is it you're expecting $HOST to be set to, and does printenv confirm these expectations? I don't seem to have any such thing defined on my machine. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/installer-dev/email@hidden


This email sent to email@hidden
References: 
 >Environment variable is not read in package postflight script (From: Jeff Vandehey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.