From 5a78d86391c0336f439a273fb34e70b87f184217 Mon Sep 17 00:00:00 2001 From: vhsdream Date: Thu, 6 Mar 2025 17:19:19 -0500 Subject: [PATCH] CWA: relocate metadata folders to /var/lib/cwa; move patch file to gist This should allow for simpler updates --- ct/calibre-web-automated.sh | 2 +- install/calibre-web-automated-install.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ct/calibre-web-automated.sh b/ct/calibre-web-automated.sh index e7f73de..fa9da2f 100644 --- a/ct/calibre-web-automated.sh +++ b/ct/calibre-web-automated.sh @@ -50,7 +50,7 @@ function update_script() { $STD git stash --all $STD git pull $STD pip install -r requirements.txt - wget -q https://raw.githubusercontent.com/vhsdream/cwa-lxc/refs/heads/dev/proxmox-lxc.patch -O /opt/cwa.patch # not for production + wget -q https://gist.githubusercontent.com/vhsdream/2e81afeff139c5746db1ede88c01cc7b/raw/51238206e87aec6c0abeccce85dec9f2b0c89000/proxmox-lxc.patch -O /opt/cwa.patch # not for production $STD git apply --whitespace=fix /opt/cwa.patch # not for production cp -r /opt/cwa/root/app/calibre-web/cps/* /usr/local/lib/python3*/dist-packages/calibreweb/cps cd scripts diff --git a/install/calibre-web-automated-install.sh b/install/calibre-web-automated-install.sh index 3f4f056..f9a8cf4 100644 --- a/install/calibre-web-automated-install.sh +++ b/install/calibre-web-automated-install.sh @@ -81,7 +81,7 @@ $STD git clone https://github.com/crocodilestick/Calibre-Web-Automated.git /opt/ cd /opt/cwa $STD git checkout V${RELEASE} $STD pip install -r requirements.txt -wget -q https://raw.githubusercontent.com/vhsdream/cwa-lxc/refs/heads/dev/proxmox-lxc.patch -O /opt/cwa.patch # not for production +wget -q https://gist.githubusercontent.com/vhsdream/2e81afeff139c5746db1ede88c01cc7b/raw/51238206e87aec6c0abeccce85dec9f2b0c89000/proxmox-lxc.patch -O /opt/cwa.patch # not for production $STD git apply --whitespace=fix /opt/cwa.patch # not for production cd scripts chmod +x check-cwa-services.sh ingest-service.sh change-detector.sh @@ -89,9 +89,8 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Setup ${APPLICATION}" msg_info "Creating necessary files & directories" -mkdir -p /opt/cwa/{metadata_change_logs,metadata_temp} mkdir -p /opt/cwa-book-ingest -mkdir -p /var/lib/cwa/{processed_books,log_archive,.cwa_conversion_tmp} +mkdir -p /var/lib/cwa/{metadata_change_logs,metadata_temp,processed_books,log_archive,.cwa_conversion_tmp} mkdir -p /var/lib/cwa/processed_books/{converted,imported,failed,fixed_originals} touch /var/lib/cwa/convert-library.log msg_ok "Directories & files created"