diff options
author | Jim P <jim@pingle.org> | 2012-02-26 09:47:28 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2012-02-26 09:47:28 -0800 |
commit | fc78f4310454581bd1794eaa1a56a4c6c98cc9ad (patch) | |
tree | 10e1e1a18fc8f2a352d4d83620ba80ecba5f164c /config/lightsquid/lightsquid.inc | |
parent | 7275b9d0419d7644c58a05aee2833421e9de1393 (diff) | |
parent | 0478d2c9cf132f81417b6648e08a7a0643e0294f (diff) | |
download | pfsense-packages-fc78f4310454581bd1794eaa1a56a4c6c98cc9ad.tar.gz pfsense-packages-fc78f4310454581bd1794eaa1a56a4c6c98cc9ad.tar.bz2 pfsense-packages-fc78f4310454581bd1794eaa1a56a4c6c98cc9ad.zip |
Merge pull request #220 from dvserg/master
LS old code delete
Diffstat (limited to 'config/lightsquid/lightsquid.inc')
-rw-r--r-- | config/lightsquid/lightsquid.inc | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc index 5e16587a..b27bd54a 100644 --- a/config/lightsquid/lightsquid.inc +++ b/config/lightsquid/lightsquid.inc @@ -119,11 +119,6 @@ function lightsquid_deinstall() { // delete cron task's ls_setup_cron("lightsquid_squid_rotate", "", "", false); ls_setup_cron("lightsquid_parser", "", "", false); - // control shoot to head :) -# mwexec(CMD_PKGDELETE); - // remove '/usr/local/www/lightsquid' dir - any time can't be removed by templates -# if (file_exists(LS_WWWPATH)) -# mwexec("rm -rf " . LS_WWWPATH); update_log("lightsquid_deinstall: stopped"); } @@ -259,36 +254,7 @@ function lightsquid_resync() { ls_setup_cron("lightsquid_parser_yesterday", "", "", false); } - // set shedule - squid rotate -# if ($tm_squid) { -# $on = false; -# $opt = array("0", "0", "*", "*", "*", "root", CRONTAB_SQUID_TEMPLATE); -# switch($tm_squid) { -# // day of month -# case 'lsr_none':$on = false; break; -# case 'lsr_d1': $on = true; $opt[2]= "*/1"; break; -# case 'lsr_d2': $on = true; $opt[2]= "*/2"; break; -# case 'lsr_d3': $on = true; $opt[2]= "*/3"; break; -# case 'lsr_d4': $on = true; $opt[2]= "*/4"; break; -# case 'lsr_d5': $on = true; $opt[2]= "*/5"; break; -# case 'lsr_d6': $on = true; $opt[2]= "*/6"; break; -# case 'lsr_d10': $on = true; $opt[2]= "*/10"; break; -# case 'lsr_d15': $on = true; $opt[2]= "*/15"; break; -# case 'lsr_d20': $on = true; $opt[2]= "*/20"; break; -# case 'lsr_d25': $on = true; $opt[2]= "*/25"; break; -# case 'lsr_d30': $on = true; $opt[2]= "*/30"; break; -# // day of week -# case 'lsr_w1': $on = true; $opt[4]= "*/1"; break; -# case 'lsr_w2': $on = true; $opt[4]= "*/1"; break; -# case 'lsr_w3': $on = true; $opt[4]= "*/1"; break; -# case 'lsr_w4': $on = true; $opt[4]= "*/1"; break; -# case 'lsr_w5': $on = true; $opt[4]= "*/1"; break; -# case 'lsr_w6': $on = true; $opt[4]= "*/1"; break; -# case 'lsr_w7': $on = true; $opt[4]= "*/1"; break; -# } -# ls_setup_cron("lightsquid_squid_rotate", $opt, CRONTAB_SQUID_JOBKEY, $on); -# } else - ls_setup_cron("lightsquid_squid_rotate", "", "", false); + ls_setup_cron("lightsquid_squid_rotate", "", "", false); // update squid conf if (isset($config['installedpackages']['squid']['config'][0])) { |