mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 10:11:53 +02:00
Always pull the latest version
This commit is contained in:
@@ -60,14 +60,16 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
|||||||
|
|
||||||
declare TOKEN
|
declare TOKEN
|
||||||
TOKEN=$(bashio::config 'secret_token')
|
TOKEN=$(bashio::config 'secret_token')
|
||||||
UPSTREAM=$(bashio::config 'upstream')
|
#UPSTREAM=$(bashio::config 'upstream')
|
||||||
VERBOSE=$(bashio::config 'verbose') || true
|
VERBOSE=$(bashio::config 'verbose') || true
|
||||||
|
|
||||||
mv -f /data/joal/config.json / || true
|
mv -f /data/joal/config.json / || true
|
||||||
if [ $VERBOSE = true ]; then
|
if [ $VERBOSE = true ]; then
|
||||||
wget -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz"
|
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")
|
||||||
|
#wget -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz"
|
||||||
else
|
else
|
||||||
wget -q -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz"
|
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"
|
||||||
fi
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user