ingress #1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue