]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/users-deleted.erb
Relax sandboxing to allow JIT for osmosis
[chef.git] / cookbooks / planet / templates / default / users-deleted.erb
index acad844a235ffac973a0436dc219bd89fdf60adf..1f739d1195d3db7e93125b907ad982d866dd8ba4 100644 (file)
@@ -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
 
 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
   : # 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
 fi
 
 rm -rf $T