mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Remove ejabberd's stuffs
This commit is contained in:
parent
c57ca23561
commit
955fe06367
1 changed files with 1 additions and 4 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue