mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-03-31 13:35:08 -05:00
11 lines
289 B
Plaintext
Executable File
11 lines
289 B
Plaintext
Executable File
#!/command/with-contenv /usr/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
cd ${PAPERLESS_SRC_DIR}
|
|
|
|
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
|
|
exec /usr/local/bin/celery --app paperless beat --loglevel INFO
|
|
else
|
|
exec s6-setuidgid paperless /usr/local/bin/celery --app paperless beat --loglevel INFO
|
|
fi
|