Skip to content
Snippets Groups Projects
Commit 75199abb authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

change owner of attachment to be portalmec

parent 88aa7e80
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ class AttachmentCacheWorker
FileUtils.mkdir_p(directory_root)
FileUtils.mv(file.path, file_root)
FileUtils.chmod 0644, file_root.to_s, verbose: true
FileUtils.chown_R 'portalmec', 'www-data', directory_root.to_s, verbose: true
@attachment.update(cache_link: cache_link)
ensure
file.close if !file.nil? && File.exist?(file.path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment