From d218e46755cece4fb41190655086f2b3209f5988 Mon Sep 17 00:00:00 2001 From: Giovanni Fulco Date: Wed, 22 May 2024 12:28:47 +0200 Subject: [PATCH] Support user mode --- app/bin/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/bin/entrypoint.sh b/app/bin/entrypoint.sh index ef812f0..0bd3f43 100644 --- a/app/bin/entrypoint.sh +++ b/app/bin/entrypoint.sh @@ -132,6 +132,10 @@ fi COMMAND_LINE="$COMMAND_LINE --config $CONFIG_DIR --option core/cache_dir=${CACHE_DIR} --option core/data_dir=${DATA_DIR}" +# Logging +echo "[logging]" > $CONFIG_DIR/logging.conf +echo "enabled = true" >> $CONFIG_DIR/logging.conf + # IRIS web gui echo "[iris]" > $CONFIG_DIR/iris.conf echo "enabled = true" >> $CONFIG_DIR/iris.conf @@ -289,7 +293,7 @@ if [[ $current_user_id -eq 0 ]]; then echo "Container running as root" if [[ $USE_USER_MODE == "Y" ]]; then echo "User mode enabled" - su - $USER_NAME -c "$CMD_LINE" + su - $USER_NAME -c "$COMMAND_LINE" else echo "user mode not enabled" eval "$COMMAND_LINE"