diff options
-rw-r--r-- | packages/squid_ng.inc | 3 | ||||
-rw-r--r-- | packages/squid_ng.xml | 6 |
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&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> |