mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-03 12:09:46 +01:00
Merge branch 'dev' into feature/superuser-manager
This commit is contained in:
commit
7f9f805c5f
109 changed files with 7029 additions and 3698 deletions
|
|
@ -81,6 +81,17 @@ migrations() {
|
|||
|
||||
}
|
||||
|
||||
search_index() {
|
||||
index_version=1
|
||||
index_version_file=/usr/src/paperless/data/.index_version
|
||||
|
||||
if [[ (! -f "$index_version_file") || $(< $index_version_file) != "$index_version" ]]; then
|
||||
echo "Search index out of date. Updating..."
|
||||
sudo -HEu paperless python3 manage.py document_index reindex
|
||||
echo $index_version | sudo -HEu paperless tee $index_version_file >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
initialize() {
|
||||
map_uidgid
|
||||
|
||||
|
|
@ -101,6 +112,7 @@ initialize() {
|
|||
migrations
|
||||
superuser
|
||||
|
||||
search_index
|
||||
}
|
||||
|
||||
install_languages() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue