From 318c08782da149f576b1434407e6c93088f4d767 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 23 Sep 2024 23:55:43 +0100 Subject: [PATCH] symlink /app/lgsm/data --- entrypoint-user.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entrypoint-user.sh b/entrypoint-user.sh index fe91388..808605e 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -44,6 +44,14 @@ if [ ! -d "/app/log" ]; then ln -s "${LGSM_LOGDIR}" "/app/log" fi +# Symlink LGSM_DATADIR to /app/lgsm/data +if [ ! -d "/app/lgsm/data" ]; then + echo -e "" + echo -e "creating symlink for ${LGSM_DATADIR}" + echo -e "=================================" + ln -s "${LGSM_DATADIR}" "/app/lgsm/data" +fi + # npm install in /app/lgsm if [ -f "/app/lgsm/package.json" ]; then echo -e ""