mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix some critical permissions issues with ssl / slapd configuration
This commit is contained in:
parent
268abdfbbd
commit
dde3a19350
3 changed files with 6 additions and 1 deletions
|
@ -78,6 +78,9 @@ do_init_regen() {
|
|||
ln -sf "$ynh_crt" /etc/ssl/certs/yunohost_crt.pem
|
||||
ln -sf "$ynh_key" /etc/ssl/private/yunohost_key.pem
|
||||
fi
|
||||
|
||||
chown -R root:ssl-cert /etc/yunohost/certs/yunohost.org/
|
||||
chmod o-rwx /etc/yunohost/certs/yunohost.org/
|
||||
}
|
||||
|
||||
do_pre_regen() {
|
||||
|
|
|
@ -78,6 +78,8 @@ do_post_regen() {
|
|||
|
||||
# Add openldap user in the ssl-cert group to let it access the certificate for TLS
|
||||
sudo usermod -aG ssl-cert openldap
|
||||
chown -R root:ssl-cert /etc/yunohost/certs/yunohost.org/
|
||||
chmod o-rwx /etc/yunohost/certs/yunohost.org/
|
||||
|
||||
[ -z "$regen_conf_files" ] && exit 0
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ sizelimit 500
|
|||
tool-threads 1
|
||||
|
||||
# TLS Support
|
||||
TLSCertificateFile /etc/ssl/private/yunohost_crt.pem
|
||||
TLSCertificateFile /etc/ssl/certs/yunohost_crt.pem
|
||||
TLSCertificateKeyFile /etc/ssl/private/yunohost_key.pem
|
||||
|
||||
#######################################################################
|
||||
|
|
Loading…
Add table
Reference in a new issue