mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Indentation fail
This commit is contained in:
parent
23e2e9c360
commit
4e0cbf7215
1 changed files with 7 additions and 7 deletions
|
@ -159,13 +159,13 @@ def domain_add(auth, domain, dyndns=False):
|
||||||
if not auth.add('virtualdomain=%s,ou=domains' % domain, attr_dict):
|
if not auth.add('virtualdomain=%s,ou=domains' % domain, attr_dict):
|
||||||
raise MoulinetteError(errno.EIO, m18n.n('domain_creation_failed'))
|
raise MoulinetteError(errno.EIO, m18n.n('domain_creation_failed'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open('/etc/yunohost/installed', 'r') as f:
|
with open('/etc/yunohost/installed', 'r') as f:
|
||||||
service_regenconf(service='nginx')
|
service_regenconf(service='nginx')
|
||||||
service_regenconf(service='metronome')
|
service_regenconf(service='metronome')
|
||||||
service_regenconf(service='dnsmasq')
|
service_regenconf(service='dnsmasq')
|
||||||
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
||||||
except IOError: pass
|
except IOError: pass
|
||||||
except:
|
except:
|
||||||
# Force domain removal silently
|
# Force domain removal silently
|
||||||
try: domain_remove(auth, domain, True)
|
try: domain_remove(auth, domain, True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue