]> git.wh0rd.org Git - tt-rss.git/commitdiff
updater: add /bin and /usr/bin to path before looking for binaries in case of php...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 3 Apr 2013 10:33:59 +0000 (14:33 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 3 Apr 2013 10:33:59 +0000 (14:33 +0400)
plugins/updater/init.php

index 8a7c8a9ca8d31a240da2178c1e814383dbd48eb9..ef5a949674ea808420def1a97a7a6b8e33a4d281 100644 (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;