Compare commits

..

3 Commits

Author SHA1 Message Date
github-actions[bot]
f45a108689 Update CHANGELOG.md 2024-11-25 23:45:59 +00:00
Håvard Gjøby Thom
a61c42ea4d
Fix bugs in Calibre-Web update (#517)
Some checks are pending
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
2024-11-26 12:45:45 +13:00
community-scripts-pr-app[bot]
99b130d186
Update CHANGELOG.md (#520)
Some checks failed
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Deploy Next.js site to Pages / deploy (push) Has been cancelled
Deploy Next.js site to Pages / build (push) Has been cancelled
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-25 21:00:31 +01:00
2 changed files with 15 additions and 8 deletions

View File

@ -26,6 +26,7 @@ Do not break established syntax in this file, as it is automatically updated by
### 🚀 Updated Scripts ### 🚀 Updated Scripts
- Fix bugs in Calibre-Web update [@havardthom](https://github.com/havardthom) ([#517](https://github.com/community-scripts/ProxmoxVE/pull/517))
- Fix upload folder in listmonk LXC [@bvdberg01](https://github.com/bvdberg01) ([#515](https://github.com/community-scripts/ProxmoxVE/pull/515)) - Fix upload folder in listmonk LXC [@bvdberg01](https://github.com/bvdberg01) ([#515](https://github.com/community-scripts/ProxmoxVE/pull/515))
### 🌐 Website ### 🌐 Website

View File

@ -61,11 +61,14 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Stopping ${APP}"
systemctl stop cps systemctl stop cps
msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}"
cd /opt/kepubify cd /opt/kepubify
rm kepubify-linux-64bit rm -rf kepubify-linux-64bit
curl -fsSLO https://github.com/pgaskin/kepubify/releases/latest/download/kepubify-linux-64bit &>/dev/null curl -fsSLO https://github.com/pgaskin/kepubify/releases/latest/download/kepubify-linux-64bit
chmod +x kepubify-linux-64bit chmod +x kepubify-linux-64bit
menu_array=("1" "Enables gdrive as storage backend for your ebooks" OFF \ menu_array=("1" "Enables gdrive as storage backend for your ebooks" OFF \
"2" "Enables sending emails via a googlemail account without enabling insecure apps" OFF \ "2" "Enables sending emails via a googlemail account without enabling insecure apps" OFF \
@ -140,16 +143,19 @@ function update_script() {
esac esac
done done
fi fi
if [ ! -z "$options" ] && [ ${#options[@]} -gt 0 ]; then if [ ${#options[@]} -gt 0 ]; then
cps_options=$(IFS=, ; echo "${options[*]}") cps_options=$(IFS=, ; echo "${options[*]}")
echo $cps_options > /opt/calibre-web/options.txt echo $cps_options > /opt/calibre-web/options.txt
pip install --upgrade calibreweb[$cps_options] pip install --upgrade calibreweb[$cps_options] &>/dev/null
else else
rm /opt/calibre-web/options.txt 2> /dev/null rm -rf /opt/calibre-web/options.txt
pip install --upgrade calibreweb pip install --upgrade calibreweb &>/dev/null
fi fi
msg_info "Starting ${APP}"
systemctl start cps systemctl start cps
msg_ok "Updated $APP LXC" msg_ok "Started ${APP}"
msg_ok "Updated Successfully"
exit exit
} }