This commit is contained in:
Michel Roegl-Brunner 2025-01-09 15:56:59 +01:00 committed by GitHub
parent 986bcaaa0d
commit c9115da871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 8 deletions

View File

@ -14,22 +14,25 @@ network_check
update_os update_os
msg_info "Installing Dependencies" 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_ok "Installed Dependencies"
msg_info "Installing Calibre (latest)" msg_info "Installing Calibre"
# If your container runs as root, you generally do not need to prefix with `sudo`. # If your container runs as root, you generally do not need to prefix with `sudo`.
# The official Calibre instructions: # The official Calibre instructions:
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin 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 "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 cat <<EOF >/etc/systemd/system/calibre-server.service
[Unit] [Unit]
Description=Calibre Content Server Description=Calibre Content Server