Ajouter cookcli/rootfs/etc/cont-init.d/70-git-sync.sh

This commit is contained in:
TheThomaas 2026-09-06 06:59:21 +00:00
parent a93e99722b
commit ce38001975

View file

@ -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)"