summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-03 14:33:59 +0400
committerAndrew Dolgov <[email protected]>2013-04-03 14:33:59 +0400
commit49dc02808e20d9f0c2062a83027c1904b42ccefa (patch)
tree36997bf1a87465999910adfe586d5c045cbe0f45
parentcfd34086c12334ae79c28a42ee9a33d75eae841c (diff)
updater: add /bin and /usr/bin to path before looking for binaries in case of php-fpm empty environment or whatever
-rw-r--r--plugins/updater/init.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index 8a7c8a9ca..ef5a94967 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -59,6 +59,10 @@ class Updater extends Plugin {
$stop = true; break;
}
+ // bah, also humbug
+ putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" .
+ PATH_SEPARATOR . "/usr/bin");
+
array_push($log, "Checking for tar...");
$system_rc = 0;