Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions entrypoint-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ elif [ -d "/app/lgsm/modules" ]; then
chmod +x /app/lgsm/modules/*
fi

# If a command was passed in, run it and exit
if [ "$1" != "" ]; then
echo -e ""
echo -e "Running ${GAMESERVER}"
echo -e "================================="
./"${GAMESERVER}" "$1"
exit 0
fi

# Install game server
if [ -z "$(ls -A -- "/data/serverfiles" 2> /dev/null)" ]; then
echo -e ""
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ export HOME=/data
echo -e ""
echo -e "Switch to user ${USER}"
echo -e "================================="
exec gosu "${USER}" /app/entrypoint-user.sh &
exec gosu "${USER}" /app/entrypoint-user.sh "$@" &
wait