Compare commits
2 Commits
d79fd7be7a
...
c13d90045e
Author | SHA1 | Date | |
---|---|---|---|
c13d90045e | |||
50cc20307d |
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
from zephir.lib_zephir import *
|
from zephir.lib_zephir import *
|
||||||
import os, shutil
|
import os, shutil
|
||||||
from creole.config import eoledirs, distrib_dir, dicos_dir
|
from creole.config import eoledirs, distrib_dir, dicos_dir
|
||||||
@ -19,9 +21,9 @@ stats_service = u'z_stats'
|
|||||||
if os.path.isfile('/var/run/z_stats.pid'):
|
if os.path.isfile('/var/run/z_stats.pid'):
|
||||||
stats_running = True
|
stats_running = True
|
||||||
try:
|
try:
|
||||||
from zephir.zephir_conf import zephir_conf
|
from zephir.zephir_conf import zephir_conf
|
||||||
except:
|
except:
|
||||||
zephir_conf = None
|
zephir_conf = None
|
||||||
|
|
||||||
|
|
||||||
if stats_running:
|
if stats_running:
|
||||||
@ -39,7 +41,7 @@ if eole_module != 'zephir':
|
|||||||
try:
|
try:
|
||||||
os.unlink("%s/zephir_conf/zephir_conf.py" % zephir_path)
|
os.unlink("%s/zephir_conf/zephir_conf.py" % zephir_path)
|
||||||
except:
|
except:
|
||||||
print("\n !! le fichier %s/zephir_conf/zephir_conf.py n'a pas pu être supprimé !!\n" % zephir_d_path)
|
print("\n !! le fichier %s/zephir_conf/zephir_conf.py n'a pas pu être supprimé !!\n" % zephir_path)
|
||||||
try:
|
try:
|
||||||
os.unlink("%s/zephir_conf/zephir_conf.pyc" % zephir_path)
|
os.unlink("%s/zephir_conf/zephir_conf.pyc" % zephir_path)
|
||||||
try:
|
try:
|
||||||
|
@ -93,7 +93,7 @@ def main():
|
|||||||
|
|
||||||
liste_serveurs = groups[group_id][1]
|
liste_serveurs = groups[group_id][1]
|
||||||
|
|
||||||
ret = proxy.uucp.exec_script(serveurs, script, params))
|
ret = proxy.uucp.exec_script(liste_serveurs, script, params)
|
||||||
|
|
||||||
# on affiche les erreurs si nécessaire
|
# on affiche les erreurs si nécessaire
|
||||||
if ret[1]:
|
if ret[1]:
|
||||||
|
Loading…
Reference in New Issue
Block a user