mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-22 07:16:06 +02:00
Update verbose mode
This commit is contained in:
@@ -26,8 +26,11 @@ TOKEN=$(bashio::config 'secret_token')
|
|||||||
UPSTREAM="2.1.24"
|
UPSTREAM="2.1.24"
|
||||||
|
|
||||||
mv -f /data/joal/config.json / || true
|
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
|
if [ $VERBOSE = true ]; then
|
||||||
wget -q -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz"
|
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
|
mkdir -p /data/joal
|
||||||
tar zxvf /tmp/joal.tar.gz -C /data/joal >/dev/null
|
tar zxvf /tmp/joal.tar.gz -C /data/joal >/dev/null
|
||||||
chown -R $(id -u):$(id -g) /data/joal
|
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"
|
bashio::log.info "... Addon will stop after $RUNTIME"
|
||||||
sleep $RUNTIME && \
|
sleep $RUNTIME && \
|
||||||
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
||||||
#kill "$PID"
|
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
bashio::log.info "... run_duration option not defined, addon will run continuously"
|
bashio::log.info "... run_duration option not defined, addon will run continuously"
|
||||||
|
|||||||
Reference in New Issue
Block a user