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