From 0ef75fc789f0cfe4d602b9c79d5f50c1293088fc Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 28 Mar 2021 16:27:42 +0200 Subject: [PATCH] nominatim: add automatic migration on updates --- cookbooks/nominatim/templates/default/git-post-merge-hook.erb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5