Install targetted tag

This commit is contained in:
Luke Murphy 2020-10-17 10:12:34 +02:00
parent 820366b42d
commit 7b0f3e7abb
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -330,11 +330,16 @@ function install_calibreweb {
$APT_INSTALL_CMD git python3 python3-pip python3-dev python3-venv ghostscript
calibre_web_url="https://github.com/janeczku/calibre-web"
target_calibre_web_version="0.6.9"
if [ ! -d "$CALIBRE_WEB_PATH" ]; then
git clone "$calibre_web_url" "$CALIBRE_WEB_PATH"
fi
cd "$CALIBRE_WEB_PATH" && \
git fetch origin master -a && \
git checkout "$target_calibre_web_version"
if [ ! -d "$CALIBRE_WEB_PATH/.venv" ]; then
# shellcheck disable=SC1091
cd "$CALIBRE_WEB_PATH" && \