From 1af9d6bf6c81eb055dab48dfe162a6df2dc63324 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 20:04:36 +0200 Subject: [PATCH] Update verbose mode --- joal/rootfs/run.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index d30b94674..6f30196c3 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -26,8 +26,11 @@ TOKEN=$(bashio::config 'secret_token') UPSTREAM="2.1.24" mv -f /data/joal/config.json / || true -#curl -s -S -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz") >/dev/null -wget -q -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz" +if [ $VERBOSE = true ]; then + wget -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz" +else + wget -q -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz" +fi mkdir -p /data/joal tar zxvf /tmp/joal.tar.gz -C /data/joal >/dev/null chown -R $(id -u):$(id -g) /data/joal @@ -59,7 +62,6 @@ if bashio::config.has_value 'run_duration'; then bashio::log.info "... Addon will stop after $RUNTIME" sleep $RUNTIME && \ bashio::log.info "... Timeout achieved, addon will stop !" && \ - #kill "$PID" exit 0 else bashio::log.info "... run_duration option not defined, addon will run continuously"