mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Merge branch 'dev' into feature/superuser-manager
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user