mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 14:30:13 +00:00
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/1b34e6db-7e7c-426e-addf-cce3ef7c5944 Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
23 lines
650 B
Bash
23 lines
650 B
Bash
#!/bin/bash
|
|
|
|
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
|
|
set -x
|
|
fi
|
|
|
|
# Defensive default: ensure AIO_LOG_LEVEL is never empty so log-level mappings below always resolve correctly
|
|
AIO_LOG_LEVEL="${AIO_LOG_LEVEL:-warn}"
|
|
|
|
if [ "$AIO_LOG_LEVEL" = "warn" ]; then
|
|
COLLABORA_LOG_LEVEL="warning"
|
|
elif [ "$AIO_LOG_LEVEL" = "info" ]; then
|
|
COLLABORA_LOG_LEVEL="notice"
|
|
else
|
|
COLLABORA_LOG_LEVEL="$AIO_LOG_LEVEL"
|
|
fi
|
|
|
|
# Replace the hardcoded log level in extra_params with the translated one
|
|
extra_params+=" --o:logging.level=$COLLABORA_LOG_LEVEL --o:logging.level_startup=$COLLABORA_LOG_LEVEL"
|
|
export extra_params
|
|
|
|
exec /start-collabora-online.sh "$@"
|