Gnration du fichier de blackliste de carte d'tudiant pour squid par Benoit.
darcs-hash:20041011212508-41617-940b96361bdce69ef8228fd0a811c77c327a16c8.gz
This commit is contained in:
parent
5af2c8f33e
commit
1880947b7d
2 changed files with 95 additions and 65 deletions
|
@ -209,6 +209,17 @@ if hostname == 'zamok':
|
|||
except:
|
||||
if auto : db.services_to_restart('droits')
|
||||
|
||||
if 'upload' in to_do.keys() :
|
||||
if auto : db.services_to_restart('-upload')
|
||||
# aussi relancer le firewall (+ tard)
|
||||
try:
|
||||
from gen_confs.squid import squid_upload
|
||||
a = squid_upload()
|
||||
a.debug = debug
|
||||
a.reconfigure()
|
||||
except:
|
||||
if auto: db.services_to_restart('upload')
|
||||
|
||||
if 'switch' in to_do.keys() :
|
||||
if auto : db.services_to_restart('-switch')
|
||||
try:
|
||||
|
@ -312,6 +323,18 @@ elif hostname == 'nectaris':
|
|||
if auto : db.services_to_restart('droits-nectaris')
|
||||
sys.stdout.write('Erreur dans la config des droits sur nectaris.\n')
|
||||
|
||||
elif hostname == 'sila' :
|
||||
if 'bl_carte_etudiant' in to_do.keys() :
|
||||
if auto : db.services_to_restart('-bl_carte_etudiant')
|
||||
try:
|
||||
from gen_confs.squid import squid_carte
|
||||
a = squid_carte()
|
||||
a.debug = debug
|
||||
a.reconfigure()
|
||||
except:
|
||||
if auto: db.services_to_restart('bl_carte_etudiant')
|
||||
|
||||
|
||||
if debug :
|
||||
print 'Non traité ici mais signalé dans la base LDAP : \n\t', db.services_to_restart()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue