Adapt LDAP scheme + reload apache

This commit is contained in:
Kload 2013-06-13 17:10:39 +02:00
parent 9d29143c35
commit 5a05feb842
2 changed files with 1 additions and 17 deletions

View file

@ -1,10 +1,4 @@
parents: parents:
ou=sudo:
ou: sudo
objectClass:
- organizationalUnit
- top
ou=users: ou=users:
ou: users ou: users
objectClass: objectClass:
@ -56,13 +50,3 @@ childs:
objectClass: objectClass:
- sudoRole - sudoRole
- top - top
cn=yunohost-admin,ou=sudo:
cn: yunohost-admin
sudoUser: yunohost-admin
sudoHost: ALL
sudoCommand: /usr/bin/yunohost
sudoOption: "!authenticate"
objectClass:
- sudoRole
- top

View file

@ -144,7 +144,7 @@ def tools_maindomain(old_domain, new_domain):
'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 reload',
'service metronome restart', 'service metronome restart',
'service postfix restart' 'service postfix restart'
] ]