From 00ad4092959492c667261b1d54d6cc0b059cbdf9 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 2 Dec 2014 09:48:51 -0200 Subject: Set PATH to make possible for varnish binaries to find cc, also, avoid cc to be symlinked to pbiopt file. Bump package version --- config/varnish3/varnish.inc | 9 ++++++--- pkg_config.10.xml | 2 +- pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc index 730bf5ab..50b37990 100644 --- a/config/varnish3/varnish.inc +++ b/config/varnish3/varnish.inc @@ -140,7 +140,8 @@ function varnish_check_config(){ if (!isset($config['installedpackages']['varnishsettings']['config'][0]['enablevarnish'])) return; - exec(VARNISH_LOCALBASE."/bin/varnishd -C -f ".VARNISH_CONFFILE." 2>&1",$output,$return); + $path = '/usr/bin/env PATH=' . VARNISH_LOCALBASE . '/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin'; + exec($path . " " . VARNISH_LOCALBASE."/bin/varnishd -C -f ".VARNISH_CONFFILE." 2>&1",$output,$return); if ($return == 0){ if (isset($_REQUEST['apply'])){ varnish_start(true); @@ -309,6 +310,7 @@ function create_varnish_rcd_file() { } $fd = fopen("/usr/local/etc/rc.d/varnish.sh", "w"); $conf_file=VARNISH_CONFFILE; + $bin_path=VARNISH_LOCALBASE . '/bin'; $rc_file = <<http://varnish-cache.org https://doc.pfsense.org/index.php/Varnish_package Services - 3.0.5_3 pkg v.0.2.3 + 3.0.5_3 pkg v.0.2.4 RC 2.2 https://packages.pfsense.org/packages/config/varnish3/varnish_backends.xml diff --git a/pkg_config.8.xml b/pkg_config.8.xml index f4722412..8d2661fa 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -728,7 +728,7 @@ http://varnish-cache.org https://doc.pfsense.org/index.php/Varnish_package Services - 3.0.4 pkg v.0.2.3 + 3.0.4 pkg v.0.2.4 RC 2.0 https://packages.pfsense.org/packages/config/varnish3/varnish_backends.xml diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index 86dda795..16dcd89e 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -715,7 +715,7 @@ http://varnish-cache.org https://doc.pfsense.org/index.php/Varnish_package Services - 3.0.4 pkg v.0.2.3 + 3.0.4 pkg v.0.2.4 RC 2.0 https://packages.pfsense.org/packages/config/varnish3/varnish_backends.xml -- cgit v1.2.3