]> git.openstreetmap.org Git - chef.git/commitdiff
Change to the sources directory before running the update
authorTom Hughes <tom@compton.nu>
Sun, 16 Feb 2014 14:00:00 +0000 (14:00 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Feb 2014 14:00:00 +0000 (14:00 +0000)
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