mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Download from github rather than calibre's own mirror
This commit is contained in:
parent
edb64a22b7
commit
8666950f48
@ -12,7 +12,7 @@ RUN \
|
||||
mkdir -p \
|
||||
/root-layer && \
|
||||
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
|
||||
|
||||
# copy local files
|
||||
|
||||
@ -61,7 +61,7 @@ fi
|
||||
echo "**** Fetching calibre bin ****"
|
||||
if [ -z ${CALIBRE_RELEASE+x} ]; then
|
||||
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
|
||||
|
||||
mkdir -p \
|
||||
@ -70,13 +70,13 @@ mkdir -p \
|
||||
if [ "$(uname -m)" == "x86_64" ]; then
|
||||
curl -o \
|
||||
/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
|
||||
|
||||
if [ "$(uname -m)" == "aarch64" ]; then
|
||||
curl -o \
|
||||
/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
|
||||
|
||||
tar xf \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user