Skip to content

Commit bb0cb9c

Browse files
committed
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.
1 parent f58cb56 commit bb0cb9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entrypoint-user.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ exit_handler_user() {
1212
echo -e "Loading exit handler"
1313
trap exit_handler_user SIGQUIT SIGINT SIGTERM
1414

15+
# Define ${USER} as missing in docker container
16+
USER="${USERNAME}"
17+
1518
# Setup game server
1619
if [ ! -f "${GAMESERVER}" ]; then
1720
echo -e ""

0 commit comments

Comments
 (0)