
On vire les dernières références à secrets.py via import direct de /etc/crans/secrets/secrets.py Ci-dessous une liste des trucs modifié et les raisons ./gestion/iscsi/nolslib.py:execfile("/etc/crans/secrets/nols.py") ./gestion/iscsi/slonlib.py:execfile("/etc/crans/secrets/slon.py") ./gestion/gen_confs/trigger.py:_args = ["ssh", "-4", "-i", "/etc/crans/secrets/trigger-generate" ] ./gestion/gen_confs/dhcpd_new.py: sys.path.append('/usr/scripts/gestion/secrets') ./gestion/gen_confs/dhcpd_new.py: from secrets import dhcp_omapi_keyname,dhcp_omapi_keys ./gestion/gen_confs/populate_sshFingerprint.py:sys.path.append('/etc/crans/secrets/') ./sip/sms_queuing:sys.path.insert(0, '/usr/scripts/gestion/secrets') ./sip/sms_queuing:from secrets import asterisk_sms_passwd ./sip/sip_multidial.py:sys.path.append('/etc/crans/secrets/') ./sip/sip_multidial.py:import secrets ./gestion/gen_confs/switchs.py: sys.path.append('/usr/scripts/gestion/secrets') ./gestion/gen_confs/switchs.py: from secrets import radius_key ./gestion/set_droits.sh: if [[ $1 = "$BASE/secrets" ]] ; then ./gestion/set_droits.sh: elif [[ $1 = "$BASE/secrets/secrets.py" ]] || [[ $1 = "$BASE/secrets/secrets.pyc" ]]; then ./admin/confmail/conf_mail.py:sys.path.append('/usr/scripts/gestion/secrets') ./admin/confmail/conf_mail.py:from secrets import secretConfirmMail
10 lines
332 B
Bash
Executable file
10 lines
332 B
Bash
Executable file
#!/bin/bash /usr/scripts/python.sh
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from asterisk import Sms
|
|
import sys
|
|
from gestion import secrets_new as secrets
|
|
|
|
if __name__ == '__main__' :
|
|
sms=Sms("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_sms")
|
|
sms.sms_daemon('localhost', 5038, 'sms', secrets.get('asterisk_sms_passwd'))
|