Detect funny path on CentOS x86
authorJamie Cameron <jcameron@webmin.com>
Tue, 10 Jun 2008 05:13:42 +0000 (05:13 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 10 Jun 2008 05:13:42 +0000 (05:13 +0000)
squid/cachemgr.cgi
squid/config-redhat-linux-6.1-*

index 3ed6fc5..401f401 100755 (executable)
@@ -4,7 +4,7 @@
 
 require './squid-lib.pl';
 $access{'cms'} || &error($text{'cach_ecannot'});
-$mgr = $config{'cachemgr_path'};
+($mgr) = glob($config{'cachemgr_path'});
 &same_file($0, $mgr) && &error($text{'cach_esame'});
 if (&has_command($mgr)) {
        $| = 1;
index 08414a8..300dd32 100644 (file)
@@ -3,7 +3,7 @@ squid_path=squid
 cache_dir=/var/spool/squid
 squid_conf=/etc/squid/squid.conf
 pid_file=/var/run/squid.pid
-cachemgr_path=/usr/lib/squid/cachemgr.cgi
+cachemgr_path=/usr/*/squid/cachemgr.cgi
 squid_start=/etc/rc.d/init.d/squid start
 squid_stop=/etc/rc.d/init.d/squid stop
 calamaris=calamaris