From b509b059f13550e3ac52410d332e0041aa506f20 Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 10 Jul 2013 18:27:51 +0200 Subject: [PATCH] Update init.php --- plugins/updater/init.php | 2 ++ 1 file changed, 2 insertions(+) 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();