From 6770ba2b5a545c0a89923f431230641cb8f04e66 Mon Sep 17 00:00:00 2001 From: dany Date: Sun, 21 Aug 2022 14:49:17 +0200 Subject: [PATCH] Update 'start.sh' --- start.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 0ce7703..5d13c45 100755 --- a/start.sh +++ b/start.sh @@ -7,9 +7,11 @@ mkdir -p /app/data/home mkdir -p /app/data/database mkdir -p /app/data/tmp ln -sf /app/data/tmp /opt/www/tmp -[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER" -adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER" -echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd +if [ ! -z "$ANTOS_USER" ]; then + [ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER" + adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER" + echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd +fi # start antd-tunnel service [ ! -f "/app/antd-config.ini" ] && cp /opt/www/antd-config.ini /app/antd-config.ini [ ! -f "/app/runner.ini" ] && cp /opt/www/runner.ini /app/runner.ini