Add warning if default token

This commit is contained in:
Alexandre
2021-05-13 23:00:46 +02:00
committed by GitHub
parent 13ce5e30ed
commit 029abd0c9a

View File

@@ -60,9 +60,16 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
declare TOKEN
TOKEN=$(bashio::config 'secret_token')
#UPSTREAM=$(bashio::config 'upstream')
VERBOSE=$(bashio::config 'verbose') || true
# check password change
if [ "$TOKEN" = "lrMY24Byhx" ]; then
bashio::log.warning "The token is still the default one, please change from addon options"
fi
# download latest version
mv -f /data/joal/config.json / || true
if [ $VERBOSE = true ]; then
curl -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")