From 029abd0c9adff0ff95a1a9a0a7630cadaa606a28 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 23:00:46 +0200 Subject: [PATCH] Add warning if default token --- joal/rootfs/run.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index a77f8272b..c7ec76238 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -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")