Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk c82998ce5a paperless-ngx: reindex Tantivy search index on webserver start 2026-08-10 17:27:16 +02:00
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ function update_script() {
fi
msg_info "Updating $APP LXC"
$STD apt update
$STD apt -y upgrade </dev/null
$STD apt -y upgrade
msg_ok "Updated $APP LXC"
msg_ok "Updated successfully!"
exit
+2
View File
@@ -166,6 +166,8 @@ function update_script() {
msg_info "Updating Paperless-ngx"
if ((BRIDGE_UPDATE == 0)); then
sed -i 's|^ExecStart=.*|ExecStart=uv run -- granian --interface asginl --ws --loop uvloop "paperless.asgi:application"|' /etc/systemd/system/paperless-webserver.service
grep -q "document_index reindex" /etc/systemd/system/paperless-webserver.service ||
sed -i '/^ExecStart=/i ExecStartPre=uv run -- python manage.py document_index reindex --if-needed --no-progress-bar' /etc/systemd/system/paperless-webserver.service
$STD systemctl daemon-reload
fi
cd /opt/paperless
+1 -1
View File
@@ -24,7 +24,7 @@ Components: main
Signed-By: /usr/share/keyrings/openziti.gpg
EOF
$STD apt update
$STD apt install -y openziti-controller openziti-console </dev/null
$STD apt install -y openziti-controller openziti-console
msg_ok "Installed openziti"
read -r -p "${TAB3}Would you like to go through the auto configuration now? <y/N>" prompt
+1
View File
@@ -151,6 +151,7 @@ Requires=redis.service
[Service]
WorkingDirectory=/opt/paperless/src
ExecStartPre=uv run -- python manage.py document_index reindex --if-needed --no-progress-bar
ExecStart=uv run -- granian --interface asginl --ws --loop uvloop "paperless.asgi:application"
Environment=GRANIAN_HOST=::
Environment=GRANIAN_PORT=8000