chmod after rename, because Tempfile is always 0600
1 files changed, 1 insertions(+), 0 deletions(-) M web.rb
M web.rb => web.rb +1 -0
@@ 313,6 313,7 @@ class Web < Roda ogm = OGMDownload.new(jmp_media_url) ogm.download.then do File.rename(ogm.path, "#{CONFIG[:ogm_path]}/#{ogm.cid}") File.chmod(0o644, "#{CONFIG[:ogm_path]}/#{ogm.cid}") CustomerRepo.new.find(params["customer_id"]).then do |customer| customer.set_ogm_url("#{CONFIG[:ogm_web_root]}/#{ogm.cid}.mp3") end