cf30b4178fbace55d5a6d7143c01ade7d1d31e44
[chef.git] / cookbooks / taginfo / templates / default / update-taginfo.erb
1 #!/bin/sh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 set -e
6
7 ROOT="<%= @directory %>"
8
9 cp $ROOT/data/taginfo-history.db $ROOT/sources
10 $ROOT/taginfo/sources/update_all.sh $ROOT/sources
11 mv $ROOT/data/taginfo-* $ROOT/data/old
12 mv $ROOT/sources/taginfo-*.db $ROOT/sources/*/taginfo-*.db $ROOT/data
13 mv $ROOT/sources/download/* $ROOT/download
14
15 touch $ROOT/taginfo/web/tmp/restart.txt