- Ajout de la mise à jour automatique du script (fix)

This commit is contained in:
Frogg 2026-05-12 15:15:49 +02:00
parent 886bb9a68c
commit 6578806de2
2 changed files with 6 additions and 9 deletions

View File

@ -34,4 +34,4 @@ color_secure() {
# Les Asci sympas :
# 🐧 🌀 🍥 ✅ ❎ ❌ ⭕ ℹ️🔄🚨🆔 🆗 🆕 🆙 ✨ 🚀
# 🐧 🌀 🍥 ✅ ❎ ❌ ⭕ ℹ️🔄🚨🆔 🆗 🆕 🆙 ✨ 🚀 🔧

View File

@ -563,7 +563,7 @@ EOF"
do_deb_sys_cert_install(){
local CA_IP WILDCARD_DOMAIN CA_URL CA_FINGERPRINT BASE_DOMAIN STEP_BIN MARKER VERSION URL ROOT_CRT SVC_USER
local CA_IP WILDCARD_DOMAIN CA_URL CA_FINGERPRINT BASE_DOMAIN MARKER VERSION URL ROOT_CRT
msg_info "=== Configuration Automatisée du Client PKI ==="
@ -611,9 +611,6 @@ do_deb_sys_cert_install(){
fi
fi
# On définit le binaire (maintenant il est forcément dans /usr/bin/step)
STEP_BIN="/usr/bin/step"
# 4. Configuration et Certificat
msg_warning "[3/6] Liaison et génération du certificat..."
@ -702,10 +699,10 @@ do_deb_sys_cert_install(){
# Parcours des services configurés
for svc in $CONFIG_DEB_INSTALL_DEFAULT_CA_SERVICES; do
local unit="${svc%.service}.service"
local load_state
local svc_user
local pid
local load_state unit svc_user
unit="${svc%.service}.service"
# Vérifie que l'unité existe réellement
load_state="$(systemctl show "$unit" --property=LoadState --value 2>/dev/null)"