From 4f148679f8d3178b2840f56d83f9f153d7951374 Mon Sep 17 00:00:00 2001 From: dany Date: Mon, 22 Aug 2022 12:18:20 +0200 Subject: [PATCH] Unset sensitive envars before starting Antos server --- start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start.sh b/start.sh index 5d13c45..63182c5 100755 --- a/start.sh +++ b/start.sh @@ -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