ingress #1

Merged
TheThomaas merged 157 commits from ingress into main 2026-09-08 13:20:49 +00:00
Showing only changes of commit e8d10cfe25 - Show all commits

View file

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