From e8d10cfe254778e0ac35a691b7b42fbf7d84f72e Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:58:36 +0000 Subject: [PATCH] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index 9aad87a..d39abc8 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -12,7 +12,7 @@ sync_git() { bashio::log.info "=== Service de synchronisation Git 5 ===" local PASSWORD=$(bashio::config 'git_password') bashio::log.info "=== Service de synchronisation Git 6 ===" - local PATH=$(bashio::config 'recipes_path') + local RECIPES_PATH=$(bashio::config 'recipes_path') bashio::log.info "=== Service de synchronisation Git 7 ===" if [ -z "$REPO" ]; then @@ -37,10 +37,10 @@ sync_git() { # Clone ou pull if [ ! -d "$PATH/.git" ]; then bashio::log.info "Premier clone du dépôt..." - git clone --branch "$BRANCH" "$AUTH_URL" "$PATH" 2>&1 | bashio::log.info + git clone --branch "$BRANCH" "$AUTH_URL" "$RECIPES_PATH" 2>&1 | bashio::log.info else bashio::log.info "Mise à jour du dépôt existant..." - cd "$PATH" + cd "$RECIPES_PATH" # Réinitialisation pour éviter les conflits git fetch origin "$BRANCH" 2>&1 | bashio::log.info git reset --hard "origin/$BRANCH" 2>&1 | bashio::log.info