From: andryyy Date: Wed, 10 Jul 2013 16:27:51 +0000 (+0200) Subject: Update init.php X-Git-Tag: 1.9~54^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b509b059f13550e3ac52410d332e0041aa506f20;p=tt-rss.git Update init.php --- diff --git a/plugins/updater/init.php b/plugins/updater/init.php index fa283c8b..69d9b08b 100644 --- a/plugins/updater/init.php +++ b/plugins/updater/init.php @@ -24,6 +24,8 @@ class Updater extends Plugin { // __FILE__ is in plugins/updater so we need to go one level up $work_dir = dirname(dirname(dirname(__FILE__))); $parent_dir = dirname($work_dir); + // Set PATH to run "which" + putenv('PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"'); $log = array(); if (!is_array($params)) $params = array();