mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-16 22:01:48 +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:
@@ -34,7 +34,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
# hadolint ignore=SC2015,DL4006
|
||||
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 \
|
||||
&& 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 \
|
||||
&& tar zxvf /tmp/joal.tar.gz -C /data/joal >/dev/null \
|
||||
&& chown -R "$(id -u)":"$(id -g)" /data/joal \
|
||||
|
||||
@@ -19,9 +19,9 @@ fi
|
||||
# download latest version
|
||||
|
||||
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
|
||||
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
|
||||
mkdir -p /data/joal
|
||||
tar zxvf /tmp/joal.tar.gz -C /data/joal >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user