Compare commits

..

No commits in common. "8f3756188526b4b270bf2c584d4da47d6c0939a1" and "986bcaaa0daf03d7fc614b5880d27269d3aac54a" have entirely different histories.

3 changed files with 24 additions and 21 deletions

View File

@ -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-2025 community-scripts ORG # Copyright (c) 2021-2024
# 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,21 +29,25 @@ 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} Packages" msg_info "Updating ${APP} container 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 "Packages updated" msg_ok "Container 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)"
bash -c "$(curl -fsSL https://download.calibre-ebook.com/linux-installer.sh)" wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin &>/dev/null
msg_ok "Updated Calibre" msg_ok "Updated Calibre"
msg_info "Starting ${APP}" msg_info "Starting ${APP}"

View File

@ -14,23 +14,22 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y imagemagick xvfb libxcomposite1
sudo \
curl \
mc \
imagemagick \
xvfb \
libxcomposite1
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Calibre" msg_info "Installing Calibre (latest)"
$STD bash -c "$(curl -fsSL https://download.calibre-ebook.com/linux-installer.sh)" # If your container runs as root, you generally do not need to prefix with `sudo`.
# The official Calibre instructions:
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin
msg_ok "Installed Calibre"
msg_info "Creating calibre system user & directories"
useradd -c "Calibre Server" -d /opt/calibre -s /bin/bash -m calibre useradd -c "Calibre Server" -d /opt/calibre -s /bin/bash -m calibre
mkdir -p /opt/calibre/calibre-library mkdir -p /opt/calibre/calibre-library
chown -R calibre:calibre /opt/calibre chown -R calibre:calibre /opt/calibre
msg_ok "Installed Calibre" msg_ok "Created calibre user & directories"
msg_info "Creating Service" msg_info "Creating systemd service"
cat <<EOF >/etc/systemd/system/calibre-server.service cat <<EOF >/etc/systemd/system/calibre-server.service
[Unit] [Unit]
Description=Calibre Content Server Description=Calibre Content Server

View File

@ -4,7 +4,7 @@
"categories": [ "categories": [
12 12
], ],
"date_created": "2025-01-09", "date_created": "2024-05-02",
"type": "ct", "type": "ct",
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
@ -12,7 +12,7 @@
"documentation": null, "documentation": null,
"website": "https://calibre-ebook.com", "website": "https://calibre-ebook.com",
"logo": "https://calibre-ebook.com/resources/icons/calibre_icon.png", "logo": "https://calibre-ebook.com/resources/icons/calibre_icon.png",
"description": "Calibre content server is used to manage and serve eBooks over the network.", "description": "Calibre content server is usedto manage and serve eBooks over the network.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",