Update 30-nginx.sh

This commit is contained in:
Alexandre
2022-07-05 11:17:26 +02:00
committed by GitHub
parent 7e6cfe5332
commit 86c108148c

View File

@@ -35,16 +35,16 @@ sed -i "s|{{ .ssl }}|$(bashio::config 'ssl')|g" /etc/nginx/servers/ingress.conf
######################
[ "$DEBUG" = "debug" ] && echo "Before var"
LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/wdaan/vuetorrent/releases/latest |
grep "browser_download_url.*zip" |
cut -d : -f 2,3 |
tr -d \" |
xargs) || \
#LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/wdaan/vuetorrent/releases/latest |
# grep "browser_download_url.*zip" |
# cut -d : -f 2,3 |
# tr -d \" |
#xargs) || \
LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/wdaan/vuetorrent/releases |
grep "browser_download_url.*zip" |
head -n 1 |
cut -d : -f 2,3 |
tr -d \" |
head -n 1 |
xargs)
[ "$DEBUG" = "debug" ] && echo "url: $LATEST_RELEASE"