From 3bcb8f0843b7798bb02f7cf5652ec200293f0264 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 6 Sep 2018 10:51:09 +0100 Subject: [PATCH] Move output down a level --- cookbooks/planet/templates/default/users-deleted.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/planet/templates/default/users-deleted.erb b/cookbooks/planet/templates/default/users-deleted.erb index acad844a2..1f739d119 100644 --- a/cookbooks/planet/templates/default/users-deleted.erb +++ b/cookbooks/planet/templates/default/users-deleted.erb @@ -10,10 +10,10 @@ export PGPASSFILE=/etc/replication/users-agreed.conf echo "# user IDs of deleted users. " > $T/users_deleted psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where status='deleted' order by id asc" openstreetmap >> $T/users_deleted -if cmp -s "${T}/users_deleted" "/store/planet/users_deleted.txt"; then +if cmp -s "${T}/users_deleted" "/store/planet/users_deleted/users_deleted.txt"; then : # do nothing else - cp $T/users_deleted /store/planet/users_deleted.txt + cp $T/users_deleted /store/planet/users_deleted/users_deleted.txt fi rm -rf $T -- 2.39.5