Remove ejabberd's stuffs

This commit is contained in:
Kload 2013-02-27 20:44:05 +01:00
parent c57ca23561
commit 955fe06367

View file

@ -93,7 +93,6 @@ def tools_maindomain(old_domain, new_domain):
config_files = [
'/etc/postfix/main.cf',
'/etc/dovecot/dovecot.conf',
'/etc/ejabberd/ejabberd.cfg',
'/etc/lemonldap-ng/lemonldap-ng.ini',
'/etc/hosts',
]
@ -146,15 +145,13 @@ def tools_maindomain(old_domain, new_domain):
h = os.system('cp '+ tmp +'/ssl/yunoCA/ca/cacert.pem /etc/ssl/certs/ca-yunohost_crt.pem')
i = os.system('cp '+ tmp +'/ssl/yunoCA/certs/yunohost_key.pem /etc/ssl/private/')
j = os.system('cp '+ tmp +'/ssl/yunoCA/newcerts/01.pem /etc/ssl/certs/yunohost_crt.pem')
k = os.system('cp '+ tmp +'/ssl/yunoCA/newcerts/01.pem /etc/ejabberd/ejabberd.pem')
l = os.system('echo '+ new_domain +' > /usr/share/yunohost/yunohost-config/others/current_host')
# Restart services
m = os.system('service apache2 restart')
n = os.system('service postfix restart')
o = os.system('service ejabberd restart')
if a == b == c == d == e == f == g == h == i == j == k == l == m == n == o == 0:
if a == b == c == d == e == f == g == h == i == j == k == l == m == n == 0:
win_msg(_("YunoHost main domain has been successfully changed"))
else:
raise YunoHostError(17, _("There were a problem during domain changing"))