From e6deaa05b9cb19089c3c644777ec9b4c3d152b0a Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 24 May 2017 12:06:45 -0700 Subject: [PATCH] remove sandbox for banned/deleted sites --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 3522cf4e..6b2328a7 100644 --- a/Rakefile +++ b/Rakefile @@ -112,7 +112,7 @@ task :compile_nginx_mapfiles => [:environment] do end File.open('./files/maps/sandboxed.txt', 'w') do |file| - usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free')", 2.days.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"} + usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free') and is_banned != 't' and is_deleted != 't'", 2.days.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"} end # Compile letsencrypt ssl keys