Unset sensitive envars before starting Antos server
This commit is contained in:
parent
9559a0ca0d
commit
4f148679f8
4
start.sh
4
start.sh
@ -12,6 +12,10 @@ if [ ! -z "$ANTOS_USER" ]; then
|
|||||||
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
||||||
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
|
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
unset ANTOS_USER
|
||||||
|
unset ANTOS_PASSWORD
|
||||||
|
|
||||||
# start antd-tunnel service
|
# start antd-tunnel service
|
||||||
[ ! -f "/app/antd-config.ini" ] && cp /opt/www/antd-config.ini /app/antd-config.ini
|
[ ! -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
|
[ ! -f "/app/runner.ini" ] && cp /opt/www/runner.ini /app/runner.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user