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
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
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://calibre-ebook.com
@ -29,21 +29,25 @@ function update_script() {
check_container_storage
check_container_resources
# Check if installed
if [[ ! -f /etc/systemd/system/calibre-server.service ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Stopping ${APP}"
systemctl stop calibre-server
msg_ok "Stopped ${APP}"
msg_info "Updating ${APP} Packages"
msg_info "Updating ${APP} container packages"
apt-get update &>/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)"
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_info "Starting ${APP}"
@ -60,4 +64,4 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${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}"

View File

@ -14,23 +14,22 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
sudo \
curl \
mc \
imagemagick \
xvfb \
libxcomposite1
$STD apt-get install -y imagemagick xvfb libxcomposite1
msg_ok "Installed Dependencies"
msg_info "Installing Calibre"
$STD bash -c "$(curl -fsSL https://download.calibre-ebook.com/linux-installer.sh)"
msg_info "Installing Calibre (latest)"
# 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
mkdir -p /opt/calibre/calibre-library
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
[Unit]
Description=Calibre Content Server
@ -56,4 +55,4 @@ msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@ -4,7 +4,7 @@
"categories": [
12
],
"date_created": "2025-01-09",
"date_created": "2024-05-02",
"type": "ct",
"updateable": true,
"privileged": false,
@ -12,7 +12,7 @@
"documentation": null,
"website": "https://calibre-ebook.com",
"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": [
{
"type": "default",
@ -40,4 +40,4 @@
"type": "info"
}
]
}
}