mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-09-15 14:18:00 +00:00
* Refactor: extract migration infrastructure, add has_pending_migration() (#13410) * Empty commit to try and get Codecov going
13 lines
365 B
Plaintext
Executable File
13 lines
365 B
Plaintext
Executable File
#!/command/with-contenv /usr/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
declare -r log_prefix="[init-llmindex-migrate]"
|
|
|
|
echo "${log_prefix} Checking for pending LLM index migrations..."
|
|
cd "${PAPERLESS_SRC_DIR}"
|
|
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
|
|
python3 manage.py document_llmindex migrate
|
|
else
|
|
s6-setuidgid paperless python3 manage.py document_llmindex migrate
|
|
fi
|