From cadd86481b15c19de21d8a2e40d4609316945b37 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 16 Feb 2014 14:00:00 +0000 Subject: [PATCH] Change to the sources directory before running the update --- cookbooks/taginfo/templates/default/update-taginfo.erb | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.2