From bb0cb9c1747f301ede61a29266260762fba2d8a2 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 2 Sep 2023 01:43:13 +0100 Subject: [PATCH] feat: define missing user in docker container Define the missing ${USER} variable in the entrypoint-user.sh script to ensure it is set correctly in the Docker container. This commit adds a new line of code that sets the ${USER} variable to "${USERNAME}". The purpose of this change is to properly configure the game server by checking if the specified file exists and setting up necessary variables accordingly. --- entrypoint-user.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint-user.sh b/entrypoint-user.sh index debc3af..e7d0b86 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -12,6 +12,9 @@ exit_handler_user() { echo -e "Loading exit handler" trap exit_handler_user SIGQUIT SIGINT SIGTERM +# Define ${USER} as missing in docker container +USER="${USERNAME}" + # Setup game server if [ ! -f "${GAMESERVER}" ]; then echo -e ""