1
0
Fork 0
mirror of https://github.com/YunoHost/moulinette.git synced 2024-09-03 20:06:31 +02:00
This commit is contained in:
Kload 2013-02-27 22:42:04 +01:00
parent 63fced095a
commit 04d91a54e7
2 changed files with 5 additions and 5 deletions

View file

@ -116,16 +116,16 @@ def domain_add(domains, web=False):
for line in conf_lines:
conf.write(line + '\n')
if web:
_apache_config(domain)
_lemon_config(domain)
if yldap.add('virtualdomain=' + domain + ',ou=domains', attr_dict):
result.append(domain)
continue
else:
raise YunoHostError(169, _("An error occured during domain creation"))
if web:
_apache_config(domain)
_lemon_config(domain)
win_msg(_("Domain(s) successfully created"))
return { 'Domains' : result }

View file

@ -150,7 +150,7 @@ def tools_maindomain(old_domain, new_domain):
m = os.system('service postfix restart')
if a == b == c == d == e == f == g == h == i == j == k == l == m == 0:
win_msg(_("YunoHost main domain has been successfully changed"))
win_msg(_("Main domain has been successfully changed"))
else:
raise YunoHostError(17, _("There were a problem during domain changing"))