Link Joal version to upstream tag

This commit is contained in:
Alexandre
2021-05-13 07:07:30 +02:00
committed by GitHub
parent 791b2167e6
commit eae85a0286

View File

@@ -22,10 +22,11 @@ sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
declare TOKEN
TOKEN=$(bashio::config 'secret_token')
UPSTREAM=$(bashio::config 'upstream')
mv -f /data/joal/config.json / || true
curl -s -S -L -o /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/2.1.24/joal.tar.gz" >/dev/null
curl -s -S -L -o /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/${UPSTREAM}/joal.tar.gz" >/dev/null
mkdir -p /data/joal
tar zxvf /tmp/joal.tar.gz -C /data/joal >/dev/null
chown -R $(id -u):$(id -g) /data/joal