Update 'start.sh'

This commit is contained in:
dany 2022-08-21 14:49:17 +02:00
parent 1687db8be0
commit 6770ba2b5a

View File

@ -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
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