metronome fix

This commit is contained in:
Kload 2013-06-09 13:47:47 +00:00
parent dfc4899d64
commit 4b6af09178
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
UPNP: false UPNP: false
ipv4: ipv4:
TCP: [22, 25, 53, 80, 443, 5222, 5269, 5280, 6767] TCP: [22, 25, 53, 80, 443, 5222, 5269, 5280, 6767, 8888]
UDP: [53] UDP: [53]
ipv6: ipv6:
TCP: [22] TCP: [22]

View file

@ -140,11 +140,12 @@ def tools_maindomain(old_domain, new_domain):
'/usr/share/lemonldap-ng/bin/lmYnhMoulinette', '/usr/share/lemonldap-ng/bin/lmYnhMoulinette',
'/etc/init.d/hostname.sh', '/etc/init.d/hostname.sh',
'cp /etc/yunohost/certs/'+ new_domain +'/key.pem /etc/metronome/certs/yunohost_key.pem', '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 +'/key.pem /etc/ssl/private/yunohost_key.pem',
'ln -s /etc/yunohost/certs/'+ new_domain +'/crt.pem /etc/ssl/certs/yunohost_crt.pem', 'ln -s /etc/yunohost/certs/'+ new_domain +'/crt.pem /etc/ssl/certs/yunohost_crt.pem',
'echo '+ new_domain +' > /etc/yunohost/current_host', 'echo '+ new_domain +' > /etc/yunohost/current_host',
'service apache2 restart', 'service apache2 restart',
'service prosody restart', 'service metronome restart',
'service postfix restart' 'service postfix restart'
] ]