File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,15 @@ elif [ -d "/app/lgsm/modules" ]; then
30
30
chmod +x /app/lgsm/modules/*
31
31
fi
32
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
+
33
42
# Install game server
34
43
if [ -z " $( ls -A -- " /data/serverfiles" 2> /dev/null) " ]; then
35
44
echo -e " "
Original file line number Diff line number Diff line change @@ -63,5 +63,5 @@ export HOME=/data
63
63
echo -e " "
64
64
echo -e " Switch to user ${USER} "
65
65
echo -e " ================================="
66
- exec gosu " ${USER} " /app/entrypoint-user.sh &
66
+ exec gosu " ${USER} " /app/entrypoint-user.sh " $@ " &
67
67
wait
You can’t perform that action at this time.
0 commit comments