aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-24 04:14:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-24 04:14:03 +0000
commit8822d63f452c888172853e6e498b2acf437fcac4 (patch)
treeeccc77ba501655bad8468dadae5f48f9a426d23a
parentc2a82c9fd8b7de3ea0904773bfc88e8216ee7908 (diff)
downloadpfsense-packages-8822d63f452c888172853e6e498b2acf437fcac4.tar.gz
pfsense-packages-8822d63f452c888172853e6e498b2acf437fcac4.tar.bz2
pfsense-packages-8822d63f452c888172853e6e498b2acf437fcac4.zip
* Copy cachemgr.cgi into place
* Add cachemgr.cgi menu item
-rw-r--r--packages/squid_ng.inc3
-rw-r--r--packages/squid_ng.xml6
2 files changed, 9 insertions, 0 deletions
diff --git a/packages/squid_ng.inc b/packages/squid_ng.inc
index b80cc36a..40cba7f3 100644
--- a/packages/squid_ng.inc
+++ b/packages/squid_ng.inc
@@ -803,6 +803,9 @@ function custom_php_install_command() {
mwexec("chown squid:squid /usr/local/etc/squid/advanced/acls/src_unrestricted_ip.acl");
mwexec("cp /usr/local/etc/squid/mime.conf.default /usr/local/etc/squid/mime.conf");
+ mwexec("cp mv /usr/lib/squid/cachemgr.cgi /usr/local/www/cachemgr.cgi");
+ mwexec("chmod a+rx /usr/local/www/cachemgr.cgi");
+
/* set a few extra items noted by regan */
update_output_window("Creating logs and setting user information...");
$fdsquid = fopen("/usr/local/etc/rc.d/aSquid.sh", "w");
diff --git a/packages/squid_ng.xml b/packages/squid_ng.xml
index 03afc728..61206770 100644
--- a/packages/squid_ng.xml
+++ b/packages/squid_ng.xml
@@ -13,6 +13,12 @@
<section>Services</section>
<url>/pkg_edit.php?xml=squid_ng.xml&amp;id=0</url>
</menu>
+ <menu>
+ <name>Squid stats</name>
+ <tooltiptext>Show Squid statistics</tooltiptext>
+ <section>Services</section>
+ <url>/cachemgr.cgi</url>
+ </menu>
<service>
<name>squid</name>
<rcfile>squid.sh</rcfile>