We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc733f7 commit 0605c17Copy full SHA for 0605c17
2 files changed
entrypoint-user.sh
@@ -30,6 +30,15 @@ elif [ -d "/app/lgsm/modules" ]; then
30
chmod +x /app/lgsm/modules/*
31
fi
32
33
+# If a command was passed in, run it and exit
34
+if [ "$1" != "" ]; then
35
+ echo -e ""
36
+ echo -e "Running ${GAMESERVER}"
37
+ echo -e "================================="
38
+ ./"${GAMESERVER}" "$1"
39
+ exit 0
40
+fi
41
+
42
# Install game server
43
if [ -z "$(ls -A -- "/data/serverfiles" 2> /dev/null)" ]; then
44
echo -e ""
entrypoint.sh
@@ -63,5 +63,5 @@ export HOME=/data
63
64
echo -e "Switch to user ${USER}"
65
echo -e "================================="
66
-exec gosu "${USER}" /app/entrypoint-user.sh &
+exec gosu "${USER}" /app/entrypoint-user.sh "$@" &
67
wait
0 commit comments