diff --git a/ct/stirling-pdf.sh b/ct/stirling-pdf.sh index 67eaee05..e78ec23c 100644 --- a/ct/stirling-pdf.sh +++ b/ct/stirling-pdf.sh @@ -59,6 +59,10 @@ check_container_resources if [[ ! -d /opt/Stirling-PDF ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP}" systemctl stop stirlingpdf +if [[ -n $(dpkg -l | grep -w ocrmypdf) ]] && [[ -z $(dpkg -l | grep -w qpdf) ]]; then + apt-get remove -y ocrmypdf &>/dev/null + apt-get install -y qpdf &>/dev/null +fi RELEASE=$(curl -s https://api.github.com/repos/Stirling-Tools/Stirling-PDF/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') wget -q https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v$RELEASE.tar.gz tar -xzf v$RELEASE.tar.gz diff --git a/install/stirling-pdf-install.sh b/install/stirling-pdf-install.sh index 6b4a8d51..3e373373 100644 --- a/install/stirling-pdf-install.sh +++ b/install/stirling-pdf-install.sh @@ -28,7 +28,7 @@ $STD apt-get install -y \ make \ g++ \ unpaper \ - ocrmypdf \ + qpdf \ poppler-utils msg_ok "Installed Dependencies"