diff --git a/bibliotecha.sh b/bibliotecha.sh index 3ee4b35..088b478 100644 --- a/bibliotecha.sh +++ b/bibliotecha.sh @@ -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" && \