web.rb 🔗
@@ -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