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
c54d066f1b
commit
5db0d9d56d
1 changed files with 3 additions and 2 deletions
|
@ -158,7 +158,7 @@ def domain_add(auth, domain, dyndns=False):
|
|||
service_regenconf(service='nginx')
|
||||
service_regenconf(service='metronome')
|
||||
service_regenconf(service='dnsmasq')
|
||||
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:
|
||||
# Force domain removal silently
|
||||
|
@ -205,7 +205,8 @@ def domain_remove(auth, domain, force=False):
|
|||
service_regenconf(service='nginx')
|
||||
service_regenconf(service='metronome')
|
||||
service_regenconf(service='dnsmasq')
|
||||
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])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue