From 539605b19a4e6c24b0458293b64feb4e4f7b4783 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Tue, 18 Aug 2026 21:25:57 +0200 Subject: [PATCH] Run WebDAV path beside existing connector runtime --- runtime/run-all.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/runtime/run-all.sh b/runtime/run-all.sh index b61410b..8180b65 100644 --- a/runtime/run-all.sh +++ b/runtime/run-all.sh @@ -6,7 +6,12 @@ SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" shopt -s nullglob if ! php "$SCRIPT_DIR/reconcile.php"; then - echo "NC Connector: gespeicherte Verbindungen konnten nicht mit der Runtime abgeglichen werden." >&2 + echo "NC Connector: gespeicherte lokale Verbindungen konnten nicht mit der Runtime abgeglichen werden." >&2 + exit 1 +fi + +if ! php "$SCRIPT_DIR/reconcile-webdav.php"; then + echo "NC Connector: WebDAV-Testverbindungen konnten nicht mit der parallelen Runtime abgeglichen werden." >&2 exit 1 fi @@ -16,9 +21,10 @@ if ! php "$SCRIPT_DIR/cleanup-stale.php"; then fi configs=("$CONFIG_DIR"/connection-*.conf) +webdav_configs=("$CONFIG_DIR"/webdav-connection-*.conf) -if [[ ${#configs[@]} -eq 0 ]]; then - echo "Keine aktiven NC-Connector-Verbindungen konfiguriert." +if [[ ${#configs[@]} -eq 0 && ${#webdav_configs[@]} -eq 0 ]]; then + echo "Keine NC-Connector-Verbindungen konfiguriert." exit 0 fi @@ -49,10 +55,18 @@ for config in "${configs[@]}"; do continue fi - echo "NC Connector: $name" + echo "NC Connector lokal: $name" if ! env PIWIGO_CONFIG="$config" bash "$SCRIPT_DIR/sync.sh"; then result=1 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"