From 9a8da001013fca6fa9c66591a7f57045ade3d96e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 27 Apr 2015 16:50:02 -0300 Subject: Sanitize varnish version, add port_category, run_depends and fix pbi checking --- config/varnish3/varnish.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/varnish3') 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'); -- cgit v1.2.3