X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/32807af28e2d59cb4664f60eab1ab5111513cb77..128b54ff815f5de7498e6ea22cae37cec36e3eeb:/cookbooks/taginfo/templates/default/update-taginfo.erb diff --git a/cookbooks/taginfo/templates/default/update-taginfo.erb b/cookbooks/taginfo/templates/default/update-taginfo.erb deleted file mode 100644 index 652a53a67..000000000 --- a/cookbooks/taginfo/templates/default/update-taginfo.erb +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# DO NOT EDIT - This file is being maintained by Chef - -set -e - -ROOT="<%= @directory %>" - -cd $ROOT/taginfo/sources - -if [ -f "$ROOT/data/taginfo-history.db" ] -then - cp $ROOT/data/taginfo-history.db $ROOT/sources -fi - -$ROOT/taginfo/sources/update_all.sh $ROOT/sources - -mv $ROOT/data/taginfo-* $ROOT/data/old -mv $ROOT/sources/taginfo-*.db $ROOT/sources/*/taginfo-*.db $ROOT/data -mv $ROOT/sources/download/* $ROOT/download - -sudo /usr/bin/passenger-config restart-app $ROOT/taginfo/web > /dev/null - -find $ROOT/sources/log -mtime +28 -delete