mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] check that os.system didn't failed
This commit is contained in:
parent
98a629ebbd
commit
67041e2680
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,7 @@ def domain_add(auth, domain, dyndns=False):
|
||||||
with open('/etc/yunohost/installed', 'r') as f:
|
with open('/etc/yunohost/installed', 'r') as f:
|
||||||
service_regen_conf(names=[
|
service_regen_conf(names=[
|
||||||
'nginx', 'metronome', 'dnsmasq', 'rmilter'])
|
'nginx', 'metronome', 'dnsmasq', 'rmilter'])
|
||||||
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
assert os.system('yunohost app ssowatconf > /dev/null 2>&1') == 0, "SSOwat conf regen failed"
|
||||||
except IOError: pass
|
except IOError: pass
|
||||||
except:
|
except:
|
||||||
# Force domain removal silently
|
# Force domain removal silently
|
||||||
|
@ -202,6 +202,7 @@ def domain_remove(auth, domain, force=False):
|
||||||
|
|
||||||
service_regen_conf(names=['nginx', 'metronome', 'dnsmasq'])
|
service_regen_conf(names=['nginx', 'metronome', 'dnsmasq'])
|
||||||
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
||||||
|
assert os.system('yunohost app ssowatconf > /dev/null 2>&1') == 0, "SSOwat conf regen failed"
|
||||||
|
|
||||||
hook_callback('post_domain_remove', args=[domain])
|
hook_callback('post_domain_remove', args=[domain])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue