no sandboxing for child sites

This commit is contained in:
Kyle Drake 2016-10-30 18:38:33 -05:00
parent 98387741e8
commit aa20d39141

View file

@ -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