From eae85a02869c10c99ebec32d49b57cc2c4958e9a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 07:07:30 +0200 Subject: [PATCH] Link Joal version to upstream tag --- 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 c4c108536..86fc8ba81 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -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