Files
ProxmoxVE/install/lazylibrarian-install.sh
T
Sam Heinz 18b9cd2e64 [arm64] Port scripts between komga & mediamanager to support arm64 (#15245)
* [arm64] Port scripts between komga-mediamanager to support arm64

adds override to make debian cts on arm64 use ubuntu mongodb binaries

* bump limesurvey
2026-06-21 00:21:58 +02:00

63 lines
1.5 KiB
Bash

#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
# Author: tteck
# Co-Author: MountyMapleSyrup (MountyMapleSyrup)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://gitlab.com/LazyLibrarian/LazyLibrarian
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
git \
libpng-dev \
libjpeg-dev \
libtiff-dev \
imagemagick
msg_ok "Installed Dependencies"
msg_info "Setup Python3"
$STD apt install -y \
pip \
python3-irc
$STD pip install --break-system-packages jaraco.stream
$STD pip install --break-system-packages python-Levenshtein
$STD pip install --break-system-packages soupsieve
$STD pip install --break-system-packages pypdf
msg_ok "Setup Python3"
msg_info "Installing LazyLibrarian"
$STD git clone https://gitlab.com/LazyLibrarian/LazyLibrarian /opt/LazyLibrarian
cd /opt/LazyLibrarian
$STD pip install --break-system-packages .
msg_ok "Installed LazyLibrarian"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/lazylibrarian.service
[Unit]
Description=LazyLibrarian Daemon
After=syslog.target network.target
[Service]
UMask=0002
Type=simple
ExecStart=/usr/bin/python3 /opt/LazyLibrarian/LazyLibrarian.py
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
systemctl enable --now -q lazylibrarian
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc