mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Download from github rather than calibre's own mirror
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ RUN \
|
|||||||
mkdir -p \
|
mkdir -p \
|
||||||
/root-layer && \
|
/root-layer && \
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g') && \
|
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||||
echo $CALIBRE_RELEASE > /root-layer/CALIBRE_RELEASE
|
echo $CALIBRE_RELEASE > /root-layer/CALIBRE_RELEASE
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ fi
|
|||||||
echo "**** Fetching calibre bin ****"
|
echo "**** Fetching calibre bin ****"
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then
|
if [ -z ${CALIBRE_RELEASE+x} ]; then
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
@@ -70,13 +70,13 @@ mkdir -p \
|
|||||||
if [ "$(uname -m)" == "x86_64" ]; then
|
if [ "$(uname -m)" == "x86_64" ]; then
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/calibre.txz -L \
|
/tmp/calibre.txz -L \
|
||||||
"https://download.calibre-ebook.com/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE}-x86_64.txz"
|
"https://github.com/kovidgoyal/calibre/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE:1}-x86_64.txz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(uname -m)" == "aarch64" ]; then
|
if [ "$(uname -m)" == "aarch64" ]; then
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/calibre.txz -L \
|
/tmp/calibre.txz -L \
|
||||||
"https://download.calibre-ebook.com/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE}-arm64.txz"
|
"https://github.com/kovidgoyal/calibre/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE:1}-arm64.txz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tar xf \
|
tar xf \
|
||||||
|
|||||||
Reference in New Issue
Block a user