[squid-logrotate,gen_confs/squid] passage a squid3 sur sable
darcs-hash:20090604150137-bd074-889185dccb2ab6ef1ab17ebf561ced58b1172b75.gz
This commit is contained in:
parent
32dee98d2d
commit
3f15a0339b
2 changed files with 15 additions and 10 deletions
|
@ -58,47 +58,47 @@ class squid(gen_config) :
|
||||||
|
|
||||||
class squid_upload(squid) :
|
class squid_upload(squid) :
|
||||||
""" Genère le fichier blacklist-upload pour squid """
|
""" Genère le fichier blacklist-upload pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_upload"
|
FICHIER = "/etc/squid3/blacklist_upload"
|
||||||
chaine = "upload"
|
chaine = "upload"
|
||||||
|
|
||||||
class squid_p2p(squid) :
|
class squid_p2p(squid) :
|
||||||
""" Genère le fichier blacklist-p2p pour squid """
|
""" Genère le fichier blacklist-p2p pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_p2p"
|
FICHIER = "/etc/squid3/blacklist_p2p"
|
||||||
chaine = "p2p"
|
chaine = "p2p"
|
||||||
|
|
||||||
class squid_autodisc_upload(squid) :
|
class squid_autodisc_upload(squid) :
|
||||||
""" Genère le fichier blacklist-autodiscupload pour squid """
|
""" Genère le fichier blacklist-autodiscupload pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_autodisc_upload"
|
FICHIER = "/etc/squid3/blacklist_autodisc_upload"
|
||||||
chaine = "autodisc_upload"
|
chaine = "autodisc_upload"
|
||||||
|
|
||||||
class squid_autodisc_p2p(squid) :
|
class squid_autodisc_p2p(squid) :
|
||||||
""" Genère le fichier blacklist-autodisc-p2p pour squid """
|
""" Genère le fichier blacklist-autodisc-p2p pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_autodisc_p2p"
|
FICHIER = "/etc/squid3/blacklist_autodisc_p2p"
|
||||||
chaine = "autodisc_p2p"
|
chaine = "autodisc_p2p"
|
||||||
|
|
||||||
class squid_virus(squid) :
|
class squid_virus(squid) :
|
||||||
""" Genère le fichier blacklist-virus pour squid """
|
""" Genère le fichier blacklist-virus pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_virus"
|
FICHIER = "/etc/squid3/blacklist_virus"
|
||||||
chaine = "virus"
|
chaine = "virus"
|
||||||
|
|
||||||
class squid_warez(squid) :
|
class squid_warez(squid) :
|
||||||
""" Genère le fichier blacklist-warez pour squid """
|
""" Genère le fichier blacklist-warez pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_warez"
|
FICHIER = "/etc/squid3/blacklist_warez"
|
||||||
chaine = "warez"
|
chaine = "warez"
|
||||||
|
|
||||||
class squid_bloq(squid) :
|
class squid_bloq(squid) :
|
||||||
""" Genère le fichier blacklist-bloq pour squid """
|
""" Genère le fichier blacklist-bloq pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_bloq"
|
FICHIER = "/etc/squid3/blacklist_bloq"
|
||||||
chaine = "bloq"
|
chaine = "bloq"
|
||||||
|
|
||||||
class squid_carte(squid) :
|
class squid_carte(squid) :
|
||||||
""" Genère le fichier blacklist-carte pour squid """
|
""" Genère le fichier blacklist-carte pour squid """
|
||||||
actif = bl_carte_et_actif
|
actif = bl_carte_et_actif
|
||||||
if not actif : restart_cmd = ''
|
if not actif : restart_cmd = ''
|
||||||
FICHIER = "/etc/squid/blacklist_carte_et"
|
FICHIER = "/etc/squid3/blacklist_carte_et"
|
||||||
chaine = "carteEtudiant!=%i"%ann_scol
|
chaine = "carteEtudiant!=%i"%ann_scol
|
||||||
|
|
||||||
class squid_chbre(squid) :
|
class squid_chbre(squid) :
|
||||||
""" Genère le fichier blacklist-chbre pour squid """
|
""" Genère le fichier blacklist-chbre pour squid """
|
||||||
FICHIER = "/etc/squid/blacklist_chbre"
|
FICHIER = "/etc/squid3/blacklist_chbre"
|
||||||
chaine = "chbre=????"
|
chaine = "chbre=????"
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
umask 0177
|
umask 0177
|
||||||
|
|
||||||
|
if [[ `hostname` == 'sable' ]]; then
|
||||||
|
logs_src=/var/log/squid3
|
||||||
|
else
|
||||||
logs_src=/var/log/squid
|
logs_src=/var/log/squid
|
||||||
|
fi
|
||||||
|
|
||||||
logs_dst="/home/squid/`hostname`/logs"
|
logs_dst="/home/squid/`hostname`/logs"
|
||||||
|
|
||||||
while ( ls -tr "$logs_src" | grep -E 'access\.log\.[0-9]+\..z2?' ); do
|
while ( ls -tr "$logs_src" | grep -E 'access\.log\.[0-9]+\..z2?' ); do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue