mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-10 21:32:50 +00:00
Fix consumption directory retrieval in script
This commit is contained in:
@@ -54,8 +54,11 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Paperless-ngx"
|
msg_info "Updating Paperless-ngx"
|
||||||
cp -r /opt/paperless_backup/* /opt/paperless/
|
cp -r /opt/paperless_backup/* /opt/paperless/
|
||||||
CONSUME_DIR="$(sed -n '/^PAPERLESS_CONSUMPTION/s/[^=]=*//p' /opt/paperless/paperless.conf)"
|
CONSUME_DIR="$(sed -n 's/^PAPERLESS_CONSUMPTION_DIR=//p' /opt/paperless/paperless.conf)"
|
||||||
mkdir -p "${CONSUME_DIR:-/opt/paperless/consume}"
|
if [[ -z "$CONSUME_DIR" ]]; then
|
||||||
|
CONSUME_DIR="/opt/paperless/consume"
|
||||||
|
fi
|
||||||
|
mkdir -p "$CONSUME_DIR"
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
$STD uv sync --all-extras
|
$STD uv sync --all-extras
|
||||||
cd /opt/paperless/src
|
cd /opt/paperless/src
|
||||||
|
|||||||
Reference in New Issue
Block a user