Re: Environment variable availability within post-install script
Re: Environment variable availability within post-install script
- Subject: Re: Environment variable availability within post-install script
- From: "Christian Lindemer" <email@hidden>
- Date: Mon, 10 May 2010 10:19:30 -0500 (CDT)
- Importance: Normal
Wouldn't it be better to use $HOME instead of the user name? THis works
if the user folder is in a non-standard location, e.g. a network home
folder or a home on a secondary volume.
-Christian
On Sun, May 9, 2010 5:14 pm, Iceberg-Dev wrote:
>
> On May 9, 2010, at 8:10 PM, Tim Streater wrote:
>
>> My post-install script (written in PHP) must write a file on the
>> user's desktop, and so needs the user's shortname in order to
>> construct the path. The script also modifies the apache config file
>> and so needs admin priv. I appear to be able to give it that by
>> ticking "Require admin authentication".
>>
>> In my PHP, I appear to be able to do:
>>
>> $user = getenv ("USER");
_______________________________________________
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