diff --git a/runtime/run-all.sh b/runtime/run-all.sh index 8180b65..be5a1ff 100644 --- a/runtime/run-all.sh +++ b/runtime/run-all.sh @@ -29,6 +29,20 @@ if [[ ${#configs[@]} -eq 0 && ${#webdav_configs[@]} -eq 0 ]]; then fi result=0 + +# WebDAV zuerst: Der parallele Shadow Tree muss bereits vollständig stehen, +# bevor der weiterhin produktive lokale Weg seine normale Piwigo- +# Dateisynchronisierung ausführt. So wird der neue Baum im selben Minutenlauf +# sichtbar, ohne dass der WebDAV-Zweig selbst eine zweite globale Piwigo- +# Synchronisierung startet. +for config in "${webdav_configs[@]}"; do + name="$(basename "$config")" + echo "NC Connector WebDAV parallel: $name" + if ! env PIWIGO_CONFIG="$config" bash "$SCRIPT_DIR/sync-webdav.sh"; then + result=1 + fi +done + for config in "${configs[@]}"; do name="$(basename "$config")" connection_id="" @@ -61,12 +75,4 @@ for config in "${configs[@]}"; do fi done -for config in "${webdav_configs[@]}"; do - name="$(basename "$config")" - echo "NC Connector WebDAV parallel: $name" - if ! env PIWIGO_CONFIG="$config" bash "$SCRIPT_DIR/sync-webdav.sh"; then - result=1 - fi -done - exit "$result"