Migration zamok.
darcs-hash:20050825141815-41617-f9c9222b78b7bc6c276228367d33895cf1b27f81.gz
This commit is contained in:
parent
b71f14546d
commit
e4bbb04a86
4 changed files with 27 additions and 118 deletions
|
@ -36,7 +36,7 @@ make_lock('auto_generate','Big lock',nowait=1)
|
|||
|
||||
class base_reconfigure :
|
||||
__service_develop = {
|
||||
'macip' : [ 'rouge-macip', 'bleu-macip', 'sila-macip' , 'komaz-macip', 'zamok-macip' ] ,
|
||||
'macip' : [ 'rouge-macip', 'bleu-macip', 'sila-macip' , 'komaz-macip' ] ,
|
||||
'droits': [ 'rouge-droits', 'nectaris-droits' ] ,
|
||||
'blacklist_upload' : [ 'bl_squid_upload' , 'komaz-blacklist'] }
|
||||
|
||||
|
@ -130,6 +130,10 @@ class rouge(base_reconfigure) :
|
|||
def mail_bienvenue(self,mails) :
|
||||
from adherents import mail_bienvenue
|
||||
self._do(mail_bienvenue(mails))
|
||||
|
||||
def switch(self,chambres) :
|
||||
from gen_confs.switchs import switch
|
||||
self._do(switch(chambres))
|
||||
|
||||
class bleu(base_reconfigure) :
|
||||
# Tout est dans le parent
|
||||
|
@ -219,7 +223,7 @@ class nectaris(base_reconfigure) :
|
|||
if self.__restart_wifi_update :
|
||||
os.system("cd / ; systrace -d /etc/systrace/wifi-update -A /usr/local/bin/twistd --syslog -o -y /usr/scripts/gestion/wifi-update.py --pidfile=/var/run/wifi-update.pid")
|
||||
|
||||
class zamok(base_reconfigure) :
|
||||
class vert(base_reconfigure) :
|
||||
def home(self,args) :
|
||||
from adherents import home
|
||||
self._do(home(args))
|
||||
|
@ -227,11 +231,7 @@ class zamok(base_reconfigure) :
|
|||
def del_user(self,args) :
|
||||
from adherents import del_user
|
||||
self._do(del_user(args))
|
||||
|
||||
def switch(self,chambres) :
|
||||
from gen_confs.switchs import switch
|
||||
self._do(switch(chambres))
|
||||
|
||||
|
||||
signal.signal(signal.SIGINT,signal.SIG_DFL) # Comportement normal de Ctrl-C
|
||||
remove_lock('auto_generate')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue