updater: add /bin and /usr/bin to path before looking for binaries in case of php-fpm empty environment or whatever

This commit is contained in:
Andrew Dolgov 2013-04-03 14:33:59 +04:00
parent cfd34086c1
commit 49dc02808e
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ class Updater extends Plugin {
$stop = true; break; $stop = true; break;
} }
// bah, also humbug
putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" .
PATH_SEPARATOR . "/usr/bin");
array_push($log, "Checking for tar..."); array_push($log, "Checking for tar...");
$system_rc = 0; $system_rc = 0;