diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-02-14 17:11:21 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-02-14 17:11:21 +0100 |
commit | cbb6617a3866b96556c790ec13260058706b95be (patch) | |
tree | 8a8d6b38e7a955e00a7080b9cd29862335d8fb07 /install.php | |
parent | 6a3c88a7b4df3310a931a4e4452d59a21adf1c7c (diff) |
define $HOME if it's not defined already
Some scripts might rely on it being defined.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/install.php b/install.php index c80626ffe..48291276a 100644 --- a/install.php +++ b/install.php @@ -8,6 +8,9 @@ $errors = ""; define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); define('FCPATH', str_replace(SELF, "", __FILE__)); +if (getenv("HOME") == "") { + putenv('HOME='.FCPATH); +} if (file_exists(FCPATH."is_installed")) { exit("already installed\n"); |