From: Andrew Dolgov Date: Wed, 3 Apr 2013 10:33:59 +0000 (+0400) Subject: updater: add /bin and /usr/bin to path before looking for binaries in case of php... X-Git-Tag: 1.7.7~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=49dc02808e20d9f0c2062a83027c1904b42ccefa;p=tt-rss.git updater: add /bin and /usr/bin to path before looking for binaries in case of php-fpm empty environment or whatever --- diff --git a/plugins/updater/init.php b/plugins/updater/init.php index 8a7c8a9c..ef5a9496 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;