Regenerate SSOwat configuration file at domain addition

This commit is contained in:
Kload 2013-10-17 11:03:45 +00:00
parent 060c4c76bb
commit 0665b84259

View file

@ -30,6 +30,7 @@ import re
import shutil
from urllib import urlopen
from yunohost import YunoHostError, YunoHostLDAP, win_msg, colorize, validate, get_required_args
from yunohost_tools import tools_ssowatconf
def domain_list(filter=None, limit=None, offset=None):
@ -196,6 +197,9 @@ def domain_add(domains, main=False):
else:
raise YunoHostError(169, _("An error occured during domain creation"))
tools_ssowatconf()
win_msg(_("Domain(s) successfully created"))
return { 'Domains' : result }