]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: add automatic migration on updates
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 28 Mar 2021 14:27:42 +0000 (16:27 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 28 Mar 2021 14:27:42 +0000 (16:27 +0200)
cookbooks/nominatim/templates/default/git-post-merge-hook.erb

index fc806f1b484408701ddfc89a0d36dd12bb97aea4..92ff6af95bf6e0be3214163ff265181920db2dd8 100644 (file)
@@ -13,5 +13,6 @@ make
 
 psql -d <%= @dbname %> -c "SELECT version();" >/dev/null 2>&1
 if [[ "$?" == "0" ]]; then
+  ./nominatim admin --migrate
   ./nominatim refresh --functions --address-levels --website
 fi