Using environment variables in pkg install scripts
Using environment variables in pkg install scripts
- Subject: Using environment variables in pkg install scripts
- From: soubhagya ranjan nayak <email@hidden>
- Date: Tue, 11 May 2010 20:26:03 +0530
Hi,
We are trying to develop a feature to enable the user to provide some inputs using the environment variables.
We are supposed to replace the environment variables with their associated values using the preinstall script at runtime. But installer is passing only a subset of the available environment variables to the preinstall script.
Is there any way to access all the environment variables available to the user in the preinstall script?
In case of Mac OS X, one can specify the system level environment variables in /etc/profile. Is there any other way to specify the system level environment variables?
Since we are concerned about the system level environment variables only , will it be correct to parse /etc/profile file directly to retrieve the environment variables and their associated values?
Regards,
Soubhagya
_______________________________________________
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