From 9777ea940a66274ff2ed36b24fa8f8dc2eab7ddf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 15 May 2026 13:03:55 +0000 Subject: [PATCH] fix: handle empty AIO_LOG_LEVEL to ensure mastercontainer updates before sibling containers Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/dca3fb80-1461-4a9e-bf3d-0b1adbaa07f3 Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com> --- Containers/postgresql/start.sh | 1 + Containers/redis/start.sh | 4 +++- Containers/watchtower/start.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Containers/postgresql/start.sh b/Containers/postgresql/start.sh index b71e448f..26744b5d 100644 --- a/Containers/postgresql/start.sh +++ b/Containers/postgresql/start.sh @@ -9,6 +9,7 @@ POSTGRES_LOG_MIN_MESSAGES="$(case "$AIO_LOG_LEVEL" in info) printf 'info' ;; warn) printf 'warning' ;; error) printf 'error' ;; + *) printf 'warning' ;; esac)" export POSTGRES_LOG_MIN_MESSAGES diff --git a/Containers/redis/start.sh b/Containers/redis/start.sh index ccc3b9bb..0fc55be8 100644 --- a/Containers/redis/start.sh +++ b/Containers/redis/start.sh @@ -9,8 +9,10 @@ if [ "$AIO_LOG_LEVEL" = "warn" ] || [ "$AIO_LOG_LEVEL" = "error" ]; then REDIS_LOG_LEVEL="warning" elif [ "$AIO_LOG_LEVEL" = "info" ]; then REDIS_LOG_LEVEL="notice" +elif [ "$AIO_LOG_LEVEL" = "debug" ]; then + REDIS_LOG_LEVEL="debug" else - REDIS_LOG_LEVEL="$AIO_LOG_LEVEL" + REDIS_LOG_LEVEL="warning" fi export REDIS_LOG_LEVEL diff --git a/Containers/watchtower/start.sh b/Containers/watchtower/start.sh index 16e7caef..7f0068f4 100644 --- a/Containers/watchtower/start.sh +++ b/Containers/watchtower/start.sh @@ -21,7 +21,7 @@ if [ -f /run/.containerenv ]; then fi if [ -n "$CONTAINER_TO_UPDATE" ]; then - exec /watchtower --cleanup --log-level "$AIO_LOG_LEVEL" --run-once "$CONTAINER_TO_UPDATE" + exec /watchtower --cleanup --log-level "${AIO_LOG_LEVEL:-warn}" --run-once "$CONTAINER_TO_UPDATE" else echo "'CONTAINER_TO_UPDATE' is not set. Cannot update anything." exit 1