Compare commits

..

3 Commits

Author SHA1 Message Date
MickLesk c82998ce5a paperless-ngx: reindex Tantivy search index on webserver start 2026-08-10 17:27:16 +02:00
MickLesk 1001309bde Document the dev mode flags that exist
dryrun was listed but is gone from core: it intercepted only the
silent() wrapper, so pct create ran anyway and the container was built.
net and timing were missing, as was the picker that dev_mode without a
flag now opens.
2026-08-10 15:21:10 +02:00
community-scripts-pr-app[bot] d9d34761d2 Update CHANGELOG.md (#16392)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-10 10:02:50 +00:00
3 changed files with 15 additions and 1 deletions
+12 -1
View File
@@ -172,8 +172,19 @@ dev_mode="trace,keep" bash -c "$(curl -fsSL https://raw.githubusercontent.com/co
| `pause` | Pauses execution at key points before customization |
| `breakpoint` | Drops to a shell at hardcoded `breakpoint` calls in scripts |
| `logs` | Saves detailed build logs to `/var/log/community-scripts/` |
| `dryrun` | Bypasses actual container creation (limited support) |
| `motd` | Forces an update of the Message of the Day |
| `net` | Logs every engine fetch: HTTP status, duration and URL |
| `timing` | Times each step and lists the slowest ones at the end |
Any flag also prints the resolved context first — where the engine came from,
both roots and URLs, the app, platform and versions — and repaints the greens
red, so a dev run is never mistaken for a normal install.
Setting `dev_mode` without naming a flag (`dev_mode=`, `=1`, `=ask`) opens a
picker before the install menu.
`dryrun` was removed: it only intercepted the `silent()` wrapper, so `pct
create` still ran and the container was still built.
---
+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
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