mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-19 11:08:11 +01:00
Add warning if default token
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user