Skip to content

Commit

Permalink
Support user mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 committed May 22, 2024
1 parent cf30df4 commit d218e46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d218e46

Please sign in to comment.