summaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php3
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");