calibre-web: switch pip installs to uv and fix service block order
This commit is contained in:
parent
a4c7dce494
commit
b518881996
@ -29,6 +29,8 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
setup_uv
|
||||||
|
|
||||||
if check_for_gh_release "calibre-web" "janeczku/calibre-web"; then
|
if check_for_gh_release "calibre-web" "janeczku/calibre-web"; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop calibre-web
|
systemctl stop calibre-web
|
||||||
@ -42,7 +44,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
cd /opt/calibre-web
|
cd /opt/calibre-web
|
||||||
$STD pip3 install --no-cache-dir -r requirements.txt
|
$STD uv pip install --system --no-cache-dir -r requirements.txt
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Restoring Data"
|
msg_info "Restoring Data"
|
||||||
|
|||||||
@ -16,7 +16,6 @@ update_os
|
|||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y \
|
$STD apt install -y \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
|
||||||
imagemagick \
|
imagemagick \
|
||||||
libpango-1.0-0 \
|
libpango-1.0-0 \
|
||||||
libharfbuzz0b \
|
libharfbuzz0b \
|
||||||
@ -32,14 +31,17 @@ msg_info "Setting up Calibre-Web"
|
|||||||
fetch_and_deploy_gh_release "calibre-web" "janeczku/calibre-web" "tarball" "latest" "/opt/calibre-web"
|
fetch_and_deploy_gh_release "calibre-web" "janeczku/calibre-web" "tarball" "latest" "/opt/calibre-web"
|
||||||
msg_ok "Setup Calibre-Web"
|
msg_ok "Setup Calibre-Web"
|
||||||
|
|
||||||
|
setup_uv
|
||||||
|
|
||||||
msg_info "Installing Python Dependencies"
|
msg_info "Installing Python Dependencies"
|
||||||
cd /opt/calibre-web
|
cd /opt/calibre-web
|
||||||
$STD pip3 install --no-cache-dir -r requirements.txt
|
$STD uv pip install --system --no-cache-dir -r requirements.txt
|
||||||
msg_ok "Installed Python Dependencies"
|
msg_ok "Installed Python Dependencies"
|
||||||
|
|
||||||
|
mkdir -p /opt/calibre-web/data
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/calibre-web.service
|
cat <<EOF >/etc/systemd/system/calibre-web.service
|
||||||
mkdir -p /opt/calibre-web/data
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Calibre-Web Service
|
Description=Calibre-Web Service
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user