From 055ed27b2d8dfc64b8476f23eb02e2ce78bcbd6e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 19:50:03 +0200 Subject: [PATCH] Update run.sh --- joal/rootfs/run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index 8d966906e..7f290025c 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -39,7 +39,11 @@ mv -f /config.json /data/joal/ || true # LAUNCH APPS # ############### -nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix="joal" --joal.ui.secret-token=$TOKEN >/dev/null \ +if [ $VERBOSE = true ]; then + nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix="joal" --joal.ui.secret-token=$TOKEN >/dev/null +else + nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix="joal" --joal.ui.secret-token=$TOKEN +fi \ & bashio::log.info "... Joal started with secret token $TOKEN" # Wait for transmission to become available bashio::net.wait_for 8081 localhost 900 || true