~singpolyma/sgx-jmp

69dbd5a780d487dd7be17d6eb7d26ca9a7d940e5 — Stephen Paul Weber 1 year, 3 months ago 8ba37d0
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