mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 10:55:10 +00:00
Update calibre-server.sh
This commit is contained in:
parent
c9115da871
commit
e917703ba6
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: thisisjeron
|
# Author: thisisjeron
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://calibre-ebook.com
|
# Source: https://calibre-ebook.com
|
||||||
@ -29,25 +29,21 @@ function update_script() {
|
|||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
# Check if installed
|
|
||||||
if [[ ! -f /etc/systemd/system/calibre-server.service ]]; then
|
if [[ ! -f /etc/systemd/system/calibre-server.service ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Stopping ${APP}"
|
msg_info "Stopping ${APP}"
|
||||||
systemctl stop calibre-server
|
systemctl stop calibre-server
|
||||||
msg_ok "Stopped ${APP}"
|
msg_ok "Stopped ${APP}"
|
||||||
|
|
||||||
msg_info "Updating ${APP} container packages"
|
msg_info "Updating ${APP} Packages"
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
apt-get -y upgrade &>/dev/null
|
apt-get -y upgrade &>/dev/null
|
||||||
msg_ok "Container packages updated"
|
msg_ok "Packages updated"
|
||||||
|
|
||||||
# Potentially re-run the official calibre script to ensure most recent version
|
|
||||||
# to keep logic consistent with how other scripts handle updates.
|
|
||||||
msg_info "Updating Calibre (latest)"
|
msg_info "Updating Calibre (latest)"
|
||||||
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin &>/dev/null
|
bash -c "$(curl -fsSL https://download.calibre-ebook.com/linux-installer.sh)"
|
||||||
msg_ok "Updated Calibre"
|
msg_ok "Updated Calibre"
|
||||||
|
|
||||||
msg_info "Starting ${APP}"
|
msg_info "Starting ${APP}"
|
||||||
@ -64,4 +60,4 @@ description
|
|||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8180${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8180${CL}"
|
||||||
|
Loading…
Reference in New Issue
Block a user