Update 'start.sh'

This commit is contained in:
dany 2022-08-18 11:08:24 +02:00
parent 27c76ad28b
commit 3dbdbd78e0

View File

@ -11,7 +11,10 @@ ln -sf /app/data/tmp /opt/www/tmp
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
# 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
/usr/bin/antd /app/antd-config.ini &
sleep 1
sleep 2
[ -f /app/runner.ini ] && /opt/www/bin/runner /app/runner.ini &
wait