Skip to content

Commit

Permalink
Fixes netbox-community#947: Rebuild search index when needed
Browse files Browse the repository at this point in the history
This rebuilds the search index when models where updated.
  • Loading branch information
tobiasge committed Feb 23, 2023
1 parent 879c700 commit e60a746
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ if ! ./manage.py migrate --check >/dev/null 2>&1; then
./manage.py remove_stale_contenttypes --no-input
echo "⚙️ Removing expired user sessions"
./manage.py clearsessions
echo "⚙️ Building search index (lazy)"
./manage.py reindex --lazy
fi

# Create Superuser if required
Expand Down

0 comments on commit e60a746

Please sign in to comment.