paperless: ASGI interface typo (#9668)
This commit is contained in:
parent
33ce3fdbc5
commit
a81c074228
@ -28,12 +28,12 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for old data structure and prompt migration
|
# Check for old data structure and prompt migration (exclude symlinks)
|
||||||
if [[ -f /opt/paperless/paperless.conf ]]; then
|
if [[ -f /opt/paperless/paperless.conf ]]; then
|
||||||
local OLD_DIRS=()
|
local OLD_DIRS=()
|
||||||
[[ -d /opt/paperless/consume ]] && OLD_DIRS+=("consume")
|
[[ -d /opt/paperless/consume && ! -L /opt/paperless/consume ]] && OLD_DIRS+=("consume")
|
||||||
[[ -d /opt/paperless/data ]] && OLD_DIRS+=("data")
|
[[ -d /opt/paperless/data && ! -L /opt/paperless/data ]] && OLD_DIRS+=("data")
|
||||||
[[ -d /opt/paperless/media ]] && OLD_DIRS+=("media")
|
[[ -d /opt/paperless/media && ! -L /opt/paperless/media ]] && OLD_DIRS+=("media")
|
||||||
|
|
||||||
if [[ ${#OLD_DIRS[@]} -gt 0 ]]; then
|
if [[ ${#OLD_DIRS[@]} -gt 0 ]]; then
|
||||||
msg_error "Old data structure detected in /opt/paperless/"
|
msg_error "Old data structure detected in /opt/paperless/"
|
||||||
|
|||||||
@ -158,7 +158,7 @@ Requires=redis.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/paperless/src
|
WorkingDirectory=/opt/paperless/src
|
||||||
ExecStart=uv run -- granian --interface asginl --ws "paperless.asgi:application"
|
ExecStart=uv run -- granian --interface asgi --ws "paperless.asgi:application"
|
||||||
Environment=GRANIAN_HOST=::
|
Environment=GRANIAN_HOST=::
|
||||||
Environment=GRANIAN_PORT=8000
|
Environment=GRANIAN_PORT=8000
|
||||||
Environment=GRANIAN_WORKERS=1
|
Environment=GRANIAN_WORKERS=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user