diff --git a/firewall.yml b/firewall.yml index ea27f005..617999a3 100644 --- a/firewall.yml +++ b/firewall.yml @@ -1,6 +1,6 @@ UPNP: false ipv4: - TCP: [22, 25, 53, 80, 443, 5222, 5269, 5280, 6767] + TCP: [22, 25, 53, 80, 443, 5222, 5269, 5280, 6767, 8888] UDP: [53] ipv6: TCP: [22] diff --git a/yunohost_tools.py b/yunohost_tools.py index 6bccd2a5..07ec0cfb 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -140,11 +140,12 @@ def tools_maindomain(old_domain, new_domain): '/usr/share/lemonldap-ng/bin/lmYnhMoulinette', '/etc/init.d/hostname.sh', 'cp /etc/yunohost/certs/'+ new_domain +'/key.pem /etc/metronome/certs/yunohost_key.pem', + 'chown metronome: /etc/metronome/certs/yunohost_key.pem', 'ln -s /etc/yunohost/certs/'+ new_domain +'/key.pem /etc/ssl/private/yunohost_key.pem', 'ln -s /etc/yunohost/certs/'+ new_domain +'/crt.pem /etc/ssl/certs/yunohost_crt.pem', 'echo '+ new_domain +' > /etc/yunohost/current_host', 'service apache2 restart', - 'service prosody restart', + 'service metronome restart', 'service postfix restart' ]