Unset sensitive envars before starting Antos server

This commit is contained in:
dany 2022-08-22 12:18:20 +02:00
parent 9559a0ca0d
commit 4f148679f8

View File

@ -12,6 +12,10 @@ if [ ! -z "$ANTOS_USER" ]; then
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
fi
unset ANTOS_USER
unset ANTOS_PASSWORD
# 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