3 # DO NOT EDIT - This file is being maintained by Chef
7 ROOT="<%= @directory %>"
9 cd $ROOT/taginfo/sources
11 if [ -f "$ROOT/data/taginfo-history.db" ]
13 cp $ROOT/data/taginfo-history.db $ROOT/sources
16 $ROOT/taginfo/sources/update_all.sh $ROOT/sources
18 mv $ROOT/data/taginfo-* $ROOT/data/old
19 mv $ROOT/sources/taginfo-*.db $ROOT/sources/*/taginfo-*.db $ROOT/data
20 mv $ROOT/sources/download/* $ROOT/download
22 sudo PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app $ROOT/taginfo/web > /dev/null
24 find $ROOT/sources/log -mtime +28 -delete