Redirect github api

https: //github.com/alexbelgium/hassio-addons/issues/1172
Co-Authored-By: Renat Gabdulhakov <akrigator@gmail.com>
This commit is contained in:
Alexandre
2024-01-12 09:40:29 +01:00
parent b53f3385de
commit f2f2b32841
4 changed files with 11 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
;;
"transmission-web-control")
curl -f -s -S -J -L -o /release.zip "$(curl -f -s https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | grep -o "http.*dist.zip" | head -1)" >/dev/null
curl -f -s -S -J -L -o /release.zip "$(curl -f -s -L https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | grep -o "http.*dist.zip" | head -1)" >/dev/null
### Install WebUI
mkdir -p /transmission-web-control
unzip -q /release.zip -d /transmission-web-control
@@ -49,7 +49,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
;;
"transmissionic")
TRANSMISSIONIC_VERSION=$(curl -s "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" | jq -r .tag_name)
TRANSMISSIONIC_VERSION=$(curl -s -L "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" | jq -r .tag_name)
curl -o /tmp/transmissionic.zip -L "https://github.com/6c65726f79/Transmissionic/releases/download/${TRANSMISSIONIC_VERSION}/Transmissionic-webui-${TRANSMISSIONIC_VERSION}.zip"
unzip /tmp/transmissionic.zip -d /tmp
mv /tmp/web /transmissionic