From aa20d39141217811ebc9ec9dc8405f390a143fd2 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 30 Oct 2016 18:38:33 -0500 Subject: [PATCH] no sandboxing for child sites --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 1f6af625..efb44d78 100644 --- a/Rakefile +++ b/Rakefile @@ -106,7 +106,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 (plan_type is null or plan_type='free')", 1.week.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')", 1.week.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"} end # Compile letsencrypt ssl keys