[fix] Regenerate SSOwat conf during main_domain operation. #672

This commit is contained in:
opi 2017-03-14 16:56:16 +01:00
parent 0c01dd4dca
commit 08760df0ec

View file

@ -185,6 +185,9 @@ def tools_maindomain(auth, new_domain=None):
else: else:
logger.info(out) logger.info(out)
# Generate SSOwat configuration file
app_ssowatconf(auth)
# Regen configurations # Regen configurations
try: try:
with open('/etc/yunohost/installed', 'r') as f: with open('/etc/yunohost/installed', 'r') as f:
@ -308,9 +311,6 @@ def tools_postinstall(domain, password, ignore_dyndns=False):
domain_add(auth, domain, dyndns) domain_add(auth, domain, dyndns)
tools_maindomain(auth, domain) tools_maindomain(auth, domain)
# Generate SSOwat configuration file
app_ssowatconf(auth)
# Change LDAP admin password # Change LDAP admin password
tools_adminpw(auth, password) tools_adminpw(auth, password)