From 49dc02808e20d9f0c2062a83027c1904b42ccefa Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Wed, 3 Apr 2013 14:33:59 +0400
Subject: [PATCH] updater: add /bin and /usr/bin to path before looking for
 binaries in case of php-fpm empty environment or whatever

---
 plugins/updater/init.php | 4 ++++
 1 file changed, 4 insertions(+)

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;
-- 
GitLab