1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:55:55 +00:00

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

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;