This commit is contained in:
Kload 2013-08-05 09:53:11 +02:00
parent 671d1652a6
commit b6b7a134d6

View file

@ -202,7 +202,8 @@ def tools_maindomain(old_domain, new_domain, dyndns=False):
'service metronome restart', 'service metronome restart',
'service postfix restart', 'service postfix restart',
'service dovecot restart', 'service dovecot restart',
'service amavis restart' 'service amavis restart',
'service tahoe-lafs restart'
] ]
for command in command_list: for command in command_list:
@ -217,9 +218,6 @@ def tools_maindomain(old_domain, new_domain, dyndns=False):
if dyndomain in dyndomains: if dyndomain in dyndomains:
dyndns_subscribe(domain=new_domain) dyndns_subscribe(domain=new_domain)
# Initialize backup system
backup_init()
win_msg(_("Main domain has been successfully changed")) win_msg(_("Main domain has been successfully changed"))
@ -285,6 +283,9 @@ def tools_postinstall(domain, password, dyndns=False):
# Initialize YunoHost LDAP base # Initialize YunoHost LDAP base
tools_ldapinit(password) tools_ldapinit(password)
# Initialize backup system
backup_init()
# New domain config # New domain config
tools_maindomain(old_domain='yunohost.org', new_domain=domain, dyndns=dyndns) tools_maindomain(old_domain='yunohost.org', new_domain=domain, dyndns=dyndns)