Compare commits

...

4 Commits

Author SHA1 Message Date
CanbiZ
8f37561885
Update calibre-server.json 2025-01-09 16:07:27 +01:00
CanbiZ
0433fd66bc
Update calibre-server-install.sh 2025-01-09 16:05:23 +01:00
CanbiZ
e917703ba6
Update calibre-server.sh 2025-01-09 16:04:45 +01:00
Michel Roegl-Brunner
c9115da871
Update 2025-01-09 15:56:59 +01:00
3 changed files with 21 additions and 24 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-2024
# Copyright (c) 2021-2025 community-scripts ORG
# Author: thisisjeron
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://calibre-ebook.com
@ -29,25 +29,21 @@ 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} container packages"
msg_info "Updating ${APP} Packages"
apt-get update &>/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)"
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_info "Starting ${APP}"

View File

@ -14,22 +14,23 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y imagemagick xvfb libxcomposite1
$STD apt-get install -y \
sudo \
curl \
mc \
imagemagick \
xvfb \
libxcomposite1
msg_ok "Installed Dependencies"
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"
msg_info "Installing Calibre"
$STD bash -c "$(curl -fsSL https://download.calibre-ebook.com/linux-installer.sh)"
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 "Created calibre user & directories"
msg_ok "Installed Calibre"
msg_info "Creating systemd service"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/calibre-server.service
[Unit]
Description=Calibre Content Server

View File

@ -4,7 +4,7 @@
"categories": [
12
],
"date_created": "2024-05-02",
"date_created": "2025-01-09",
"type": "ct",
"updateable": true,
"privileged": false,