Skip to content

Commit 24109fd

Browse files
committed
feat: add symlink for LGSM_CONFIG
This commit adds a symlink for the LGSM_CONFIG file to the /app/lgsm/config-lgsm directory. This allows for easier access and management of the configuration file.
1 parent 241c6ae commit 24109fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

entrypoint-user.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ if [ ! -f "${GAMESERVER}" ]; then
2020
./linuxgsm.sh "${GAMESERVER}"
2121
fi
2222

23+
# Symlink LGSM_CONFIG to /app/lgsm/config-lgsm
24+
if [ ! -d "/app/lgsm/config-lgsm" ]; then
25+
echo -e ""
26+
echo -e "creating symlink for ${LGSM_CONFIG}"
27+
echo -e "================================="
28+
ln -s "${LGSM_CONFIG}" "/app/lgsm/config-lgsm"
29+
fi
30+
31+
2332
# Clear modules directory if not master
2433
if [ "${LGSM_GITHUBBRANCH}" != "master" ]; then
2534
echo -e "not master branch, clearing modules directory"

0 commit comments

Comments
 (0)