From ce3800197517960ec0f08ab14e4ddabe81976744 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 06:59:21 +0000 Subject: [PATCH] Ajouter cookcli/rootfs/etc/cont-init.d/70-git-sync.sh --- cookcli/rootfs/etc/cont-init.d/70-git-sync.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/70-git-sync.sh diff --git a/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh b/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh new file mode 100644 index 0000000..d071971 --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh @@ -0,0 +1,12 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Initialisation de Git Sync ===" + +# Vérifier que Git est installé +if ! command -v git >/dev/null 2>&1; then + bashio::log.warning "⚠️ Git n'est pas installé." + exit 0 +fi + +bashio::log.info "✅ Git est prêt : $(git --version)" \ No newline at end of file