3 # DO NOT EDIT - This file is being maintained by Chef
5 T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX)
7 # use the same as for the users-agreed template
8 export PGPASSFILE=/etc/replication/users-agreed.conf
10 echo "# user IDs of deleted users. " > $T/users_deleted
11 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
13 if cmp -s "${T}/users_deleted" "/store/planet/users_deleted/users_deleted.txt"; then
16 cp $T/users_deleted /store/planet/users_deleted/users_deleted.txt