From 1c0731a82946cfd989fc2bef842ce5793b1d5d39 Mon Sep 17 00:00:00 2001 From: Alpinux Date: Sun, 3 May 2026 18:17:40 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20STATIC=5FUSER=3Dabonnelc,=20sudo=20rsync?= =?UTF-8?q?,=20chemin=20logo=20corrig=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Connexion SSH via abonnelc (sudo NOPASSWD:ALL) - --rsync-path="sudo rsync" pour accéder à web17/web/logo/ (owner web17) - STATIC_PATH pointe sur web17/web/logo/ (pas la racine ISPConfig) - .env.example neutre : STATIC_USER reste un placeholder Co-Authored-By: Claude Sonnet 4.6 --- .env.example | 10 ++++++---- scripts/pull-assets.sh | 2 ++ scripts/push-assets.sh | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 483eea4..24db5ca 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,9 @@ -# Connexion SSH au serveur static.alpinux.org -STATIC_USER= +# Connexion SSH — utiliser le même user que votre "ssh alpinux.org" +STATIC_USER= STATIC_HOST=alpinux.org -STATIC_PATH= -# Répertoire local des assets générés (par wiki/scripts/build-assets.py) +# Chemin vers le dossier logo dans le web root ISPConfig +STATIC_PATH=/var/www/clients/client1/web17/web/logo + +# Répertoire local des assets générés par wiki/scripts/build-assets.py LOCAL_ASSETS_DIR=/tmp/alpinux-static-assets diff --git a/scripts/pull-assets.sh b/scripts/pull-assets.sh index 21f8dfe..43f7dc5 100755 --- a/scripts/pull-assets.sh +++ b/scripts/pull-assets.sh @@ -52,6 +52,7 @@ echo -e " Cible : ${CYAN}$LOCAL_DIR/${RESET}" echo "" DIFF=$(rsync -rlcz --dry-run --itemize-changes \ + --rsync-path="sudo rsync" \ "$REMOTE" "$LOCAL_DIR/" 2>&1) NEW=0; CHANGED=0 @@ -92,6 +93,7 @@ fi echo "" echo -e "${BOLD}Récupération en cours…${RESET}" rsync -rlcz --human-readable --progress \ + --rsync-path="sudo rsync" \ "$REMOTE" "$LOCAL_DIR/" echo "" diff --git a/scripts/push-assets.sh b/scripts/push-assets.sh index 5475f63..0f37ecc 100755 --- a/scripts/push-assets.sh +++ b/scripts/push-assets.sh @@ -56,6 +56,7 @@ echo -e " Cible : ${CYAN}$REMOTE${RESET}" echo "" DIFF=$(rsync -rlcz --dry-run --itemize-changes --delete \ + --rsync-path="sudo rsync" \ "$LOCAL_DIR/" "$REMOTE" 2>&1) NEW=0; CHANGED=0; DELETED=0 @@ -99,6 +100,7 @@ fi echo "" echo -e "${BOLD}Synchronisation en cours…${RESET}" rsync -rlcz --human-readable --progress --delete \ + --rsync-path="sudo rsync" \ "$LOCAL_DIR/" "$REMOTE" echo ""