From: Tom Hughes Date: Sun, 16 Feb 2014 14:00:00 +0000 (+0000) Subject: Change to the sources directory before running the update X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/cadd86481b15c19de21d8a2e40d4609316945b37 Change to the sources directory before running the update --- diff --git a/cookbooks/taginfo/templates/default/update-taginfo.erb b/cookbooks/taginfo/templates/default/update-taginfo.erb index 801591927..84d033a53 100644 --- a/cookbooks/taginfo/templates/default/update-taginfo.erb +++ b/cookbooks/taginfo/templates/default/update-taginfo.erb @@ -6,6 +6,8 @@ set -e ROOT="<%= @directory %>" +cd $ROOT/taginfo/sources + if [ -f "$ROOT/data/taginfo-history.db" ] then cp $ROOT/data/taginfo-history.db $ROOT/sources