X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b48d93e7fb488da12eaac4b747d0cb9b41a72328..dc404c6f1e199f83036550c72ff09bcca8776c30:/cookbooks/planet/files/default/replication-bin/users-agreed diff --git a/cookbooks/planet/files/default/replication-bin/users-agreed b/cookbooks/planet/files/default/replication-bin/users-agreed index 1aa0c1b6e..707a65bfd 100644 --- a/cookbooks/planet/files/default/replication-bin/users-agreed +++ b/cookbooks/planet/files/default/replication-bin/users-agreed @@ -8,9 +8,9 @@ export PGPASSFILE=/etc/replication/users-agreed.conf echo "# user IDs < 286582 who have agreed to the contributor terms. " > $T/users_agreed echo "# any active user IDs >= 286582 would have agreed as part of the sign-up process." >> $T/users_agreed -psql -h db -U planetdiff -t -c "select id from users where id < 286582 and terms_agreed is not null order by id asc" openstreetmap >> $T/users_agreed +psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where id < 286582 and terms_agreed is not null order by id asc" openstreetmap >> $T/users_agreed -psql -h db -U planetdiff -t -c "select id from users where terms_seen and terms_agreed is null order by id asc" openstreetmap > $T/users_disagreed +psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where terms_seen and terms_agreed is null order by id asc" openstreetmap > $T/users_disagreed if cmp -s "${T}/users_agreed" "/store/planet/users_agreed/users_agreed.txt"; then : # do nothing