mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Moving to the post-regen part because the pre-regen part should touch as little as possible of the actual system config
This commit is contained in:
parent
bae6fe86f3
commit
10f1651022
1 changed files with 3 additions and 3 deletions
|
@ -31,9 +31,6 @@ do_init_regen() {
|
|||
do_pre_regen() {
|
||||
pending_dir=$1
|
||||
|
||||
# Add openldap user in the ssl-cert group to let it access the certificate for TLS
|
||||
sudo usermod -aG ssl-cert openldap
|
||||
|
||||
cd /usr/share/yunohost/templates/slapd
|
||||
|
||||
# create needed directories
|
||||
|
@ -79,6 +76,9 @@ do_post_regen() {
|
|||
sudo chown -R openldap:openldap /etc/ldap/schema/
|
||||
sudo chown -R openldap:openldap /etc/ldap/slapd.d/
|
||||
|
||||
# Add openldap user in the ssl-cert group to let it access the certificate for TLS
|
||||
sudo usermod -aG ssl-cert openldap
|
||||
|
||||
[ -z "$regen_conf_files" ] && exit 0
|
||||
|
||||
# check the slapd config file at first
|
||||
|
|
Loading…
Add table
Reference in a new issue