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
955fe06367
commit
e0036030d4
1 changed files with 4 additions and 4 deletions
|
@ -145,13 +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')
|
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/')
|
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')
|
j = os.system('cp '+ tmp +'/ssl/yunoCA/newcerts/01.pem /etc/ssl/certs/yunohost_crt.pem')
|
||||||
l = os.system('echo '+ new_domain +' > /usr/share/yunohost/yunohost-config/others/current_host')
|
k = os.system('echo '+ new_domain +' > /usr/share/yunohost/yunohost-config/others/current_host')
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
m = os.system('service apache2 restart')
|
l = os.system('service apache2 restart')
|
||||||
n = os.system('service postfix restart')
|
m = os.system('service postfix restart')
|
||||||
|
|
||||||
if a == b == c == d == e == f == g == h == i == j == k == l == m == n == 0:
|
if a == b == c == d == e == f == g == h == i == j == k == l == m == 0:
|
||||||
win_msg(_("YunoHost main domain has been successfully changed"))
|
win_msg(_("YunoHost main domain has been successfully changed"))
|
||||||
else:
|
else:
|
||||||
raise YunoHostError(17, _("There were a problem during domain changing"))
|
raise YunoHostError(17, _("There were a problem during domain changing"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue