1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-24 11:56:36 +02: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;
}
// bah, also humbug
putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" .
PATH_SEPARATOR . "/usr/bin");
array_push($log, "Checking for tar...");
$system_rc = 0;