- Ajout des droits pfx
This commit is contained in:
parent
e4e13ec17f
commit
134d7a4166
|
|
@ -640,7 +640,7 @@ do_deb_sys_cert_install(){
|
|||
|
||||
# --- ÉTAPE 6 (Cron & Nettoyage final) ---
|
||||
# C'est seulement MAINTENANT qu'on peut supprimer
|
||||
rm -rf "/tmp/step-config"
|
||||
#rm -rf "/tmp/step-config"
|
||||
|
||||
# ==================================================================
|
||||
# [5/6] ATTRIBUTION DES DROITS (D'abord les droits, ensuite le cron)
|
||||
|
|
@ -678,17 +678,18 @@ do_deb_sys_cert_install(){
|
|||
[ -z "$SVC_USER" ] && continue
|
||||
|
||||
# Ignore root
|
||||
[ "$SVC_USER" = "root" ] && continue
|
||||
if [ ! "$SVC_USER" = "root" ]; then
|
||||
|
||||
msg_info "🔧 Configuration de $UNIT (Utilisateur : $SVC_USER)"
|
||||
msg_info "🔧 Configuration de $UNIT (Utilisateur : $SVC_USER)"
|
||||
|
||||
# Ajout au groupe ssl-cert
|
||||
usermod -aG ssl-cert "$SVC_USER"
|
||||
# Ajout au groupe ssl-cert
|
||||
usermod -aG ssl-cert "$SVC_USER"
|
||||
|
||||
# Permissions certificats
|
||||
chown root:ssl-cert /etc/ssl/wildcard/server.key /etc/ssl/wildcard/server.pfx
|
||||
chmod 640 /etc/ssl/wildcard/server.key /etc/ssl/wildcard/server.pfx
|
||||
# Permissions certificats
|
||||
chown root:ssl-cert /etc/ssl/wildcard/server.key /etc/ssl/wildcard/server.pfx
|
||||
chmod 640 /etc/ssl/wildcard/server.key /etc/ssl/wildcard/server.pfx
|
||||
chmod 644 /etc/ssl/wildcard/server.crt
|
||||
fi
|
||||
|
||||
# Redémarrage
|
||||
if systemctl restart "$UNIT"; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue