diff --git a/yunohost_tools.py b/yunohost_tools.py index fd1d53be..602ba652 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -202,8 +202,7 @@ def tools_maindomain(old_domain, new_domain, dyndns=False): 'service metronome restart', 'service postfix restart', 'service dovecot restart', - 'service tahoe-lafs stop', - 'service tahoe-lafs start' + 'service amavis restart' ] for command in command_list: @@ -218,6 +217,9 @@ def tools_maindomain(old_domain, new_domain, dyndns=False): if dyndomain in dyndomains: dyndns_subscribe(domain=new_domain) + # Initialize backup system + backup_init() + win_msg(_("Main domain has been successfully changed")) @@ -255,6 +257,7 @@ def tools_postinstall(domain, password, dyndns=False): '/etc/yunohost/certs', '/var/cache/yunohost/repo', '/home/yunohost.samba', + '/home/yunohost.backup', '/home/yunohost.app' ] @@ -288,9 +291,6 @@ def tools_postinstall(domain, password, dyndns=False): # Change LDAP admin password tools_adminpw(old_password='yunohost', new_password=password) - # Initialize backup system - backup_init() - os.system('touch /etc/yunohost/installed') os.system('service samba restart')