From: Sarah Hoffmann Date: Sun, 28 Mar 2021 14:27:42 +0000 (+0200) Subject: nominatim: add automatic migration on updates X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0ef75fc789f0cfe4d602b9c79d5f50c1293088fc nominatim: add automatic migration on updates --- diff --git a/cookbooks/nominatim/templates/default/git-post-merge-hook.erb b/cookbooks/nominatim/templates/default/git-post-merge-hook.erb index fc806f1b4..92ff6af95 100644 --- a/cookbooks/nominatim/templates/default/git-post-merge-hook.erb +++ b/cookbooks/nominatim/templates/default/git-post-merge-hook.erb @@ -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