Vagrantfile and provision scripts for development

This commit is contained in:
Kyle Drake 2015-01-31 15:50:12 -08:00
parent 46883b2bdd
commit 9038141e28
16 changed files with 128 additions and 50 deletions

View file

@ -509,7 +509,7 @@ class Site < Sequel::Model
# clamdscan doesn't work on travis for testing
return true if ENV['TRAVIS'] == 'true'
File.chmod 0640, uploaded_file[:tempfile].path
File.chmod 0666, uploaded_file[:tempfile].path
line = Cocaine::CommandLine.new(
"clamdscan", "-i --remove=no --no-summary --stdout :path",
expected_outcodes: [0, 1]