From 47ed7bd202d86037613d8984ccfaa5cc8a72b127 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 15:24:48 +0200 Subject: [PATCH] Update run.sh --- joal/rootfs/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index b411a8985..4475f5875 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -39,7 +39,8 @@ mv -f /config.json /data/joal/ || true ############### 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 \ -& bashio::log.info "... Joal started with secret token $TOKEN" +& bashio::log.info "... Joal started with secret token $TOKEN" \ +& { sleep $Timeout && bashio::log.info "... Timeout achieved, addon will stop !"} & \ # Wait for transmission to become available bashio::net.wait_for 8081 localhost 900 || true bashio::log.info "... Nginx started for Ingress"