mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] clean code, this is what we indeed want to check
This commit is contained in:
parent
56513bbdb1
commit
286449386c
1 changed files with 4 additions and 7 deletions
|
@ -114,13 +114,10 @@ def domain_add(auth, domain, dyndns=False):
|
|||
if not auth.add('virtualdomain=%s,ou=domains' % domain, attr_dict):
|
||||
raise MoulinetteError(errno.EIO, m18n.n('domain_creation_failed'))
|
||||
|
||||
try:
|
||||
with open('/etc/yunohost/installed', 'r') as f:
|
||||
service_regen_conf(names=[
|
||||
'nginx', 'metronome', 'dnsmasq', 'rmilter'])
|
||||
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
||||
except IOError:
|
||||
pass
|
||||
if os.path.exists('/etc/yunohost/installed'):
|
||||
service_regen_conf(names=['nginx', 'metronome', 'dnsmasq', 'rmilter'])
|
||||
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
||||
|
||||
except:
|
||||
# Force domain removal silently
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue