]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/update-taginfo.erb
Change to the sources directory before running the update
[chef.git] / cookbooks / taginfo / templates / default / update-taginfo.erb
index 801591927356f49ebe9fa4e2154c1c151953fa6f..84d033a5375d28bbe8399bf41df11a5399437c9e 100644 (file)
@@ -6,6 +6,8 @@ set -e
 
 ROOT="<%= @directory %>"
 
 
 ROOT="<%= @directory %>"
 
+cd $ROOT/taginfo/sources
+
 if [ -f "$ROOT/data/taginfo-history.db" ]
 then
     cp $ROOT/data/taginfo-history.db $ROOT/sources
 if [ -f "$ROOT/data/taginfo-history.db" ]
 then
     cp $ROOT/data/taginfo-history.db $ROOT/sources