X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7f0fb2b6253aec57a6bce0276a975a037eb8e51e..330b3f748baa6e05229a174415965a065e2f7f0c:/cookbooks/planet/templates/default/users-deleted.erb diff --git a/cookbooks/planet/templates/default/users-deleted.erb b/cookbooks/planet/templates/default/users-deleted.erb index a4d4c71f0..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