diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-04-27 16:50:02 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-27 16:50:02 -0300 |
commit | 9a8da001013fca6fa9c66591a7f57045ade3d96e (patch) | |
tree | d6a97ac1bb200993a506d60c30891fd0fde1651e /config/varnish3 | |
parent | 533bc184bc5732f2e8e75157d4104da392ac48ae (diff) | |
download | pfsense-packages-9a8da001013fca6fa9c66591a7f57045ade3d96e.tar.gz pfsense-packages-9a8da001013fca6fa9c66591a7f57045ade3d96e.tar.bz2 pfsense-packages-9a8da001013fca6fa9c66591a7f57045ade3d96e.zip |
Sanitize varnish version, add port_category, run_depends and fix pbi checking
Diffstat (limited to 'config/varnish3')
-rw-r--r-- | config/varnish3/varnish.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc index 50b37990..5df8052b 100644 --- a/config/varnish3/varnish.inc +++ b/config/varnish3/varnish.inc @@ -35,7 +35,7 @@ $shortcut_section = "varnish"; $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); -if (is_dir('/usr/pbi/varnish-' . php_uname("m"))) { +if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('VARNISH_LOCALBASE', '/usr/pbi/varnish-' . php_uname("m")); } else { define('VARNISH_LOCALBASE','/usr/local'); |