mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-19 23:31:50 +02:00
Redirect github api
https: //github.com/alexbelgium/hassio-addons/issues/1172 Co-Authored-By: Renat Gabdulhakov <akrigator@gmail.com>
This commit is contained in:
2
.github/workflows/on_issues.yml
vendored
2
.github/workflows/on_issues.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
echo "Starting"
|
echo "Starting"
|
||||||
|
|
||||||
# Get issues list
|
# Get issues list
|
||||||
curl -s https://api.github.com/repos/alexbelgium/hassio-addons/issues > issueslist
|
curl -s -L https://api.github.com/repos/alexbelgium/hassio-addons/issues > issueslist
|
||||||
# Go through all folders, add to filters if not existing
|
# Go through all folders, add to filters if not existing
|
||||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
||||||
if [ -f "$f"/config.json ]; then
|
if [ -f "$f"/config.json ]; then
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
|||||||
# hadolint ignore=SC2015,DL4006
|
# hadolint ignore=SC2015,DL4006
|
||||||
RUN \
|
RUN \
|
||||||
if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi \
|
if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi \
|
||||||
&& curl -f -s -S -J -L -o /tmp/joal.tar.gz "$(curl -f -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")" >/dev/null \
|
&& curl -f -s -S -J -L -o /tmp/joal.tar.gz "$(curl -f -s -L https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")" >/dev/null \
|
||||||
&& 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 \
|
||||||
&& chown -R "$(id -u)":"$(id -g)" /data/joal \
|
&& chown -R "$(id -u)":"$(id -g)" /data/joal \
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ fi
|
|||||||
# download latest version
|
# download latest version
|
||||||
|
|
||||||
if [ "$VERBOSE" = true ]; then
|
if [ "$VERBOSE" = true ]; then
|
||||||
curl --progress-bar -f -J -L -o /tmp/joal.tar.gz "$(curl -f -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")"
|
curl --progress-bar -f -J -L -o /tmp/joal.tar.gz "$(curl -f -s -L https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")"
|
||||||
else
|
else
|
||||||
curl --progress-bar -f -S -J -L -o /tmp/joal.tar.gz "$(curl -f -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")" >/dev/null
|
curl --progress-bar -f -S -J -L -o /tmp/joal.tar.gz "$(curl -f -s -L https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")" >/dev/null
|
||||||
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
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"transmission-web-control")
|
"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
|
### Install WebUI
|
||||||
mkdir -p /transmission-web-control
|
mkdir -p /transmission-web-control
|
||||||
unzip -q /release.zip -d /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")
|
||||||
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"
|
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
|
unzip /tmp/transmissionic.zip -d /tmp
|
||||||
mv /tmp/web /transmissionic
|
mv /tmp/web /transmissionic
|
||||||
|
|||||||
Reference in New Issue
Block a user