X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Ffrontend.ex;h=adda71eef1f989ce0931c4d62789afa5c6e42cbf;hb=ce517ff4e5a9cc144853ec8112bfac2a38a3a68a;hp=cc0b47077f7a82f1130543af579c0669ff58a9c9;hpb=5b11543c96427ced093c28c38de0924a148424b7;p=akkoma diff --git a/lib/pleroma/frontend.ex b/lib/pleroma/frontend.ex index cc0b47077..adda71eef 100644 --- a/lib/pleroma/frontend.ex +++ b/lib/pleroma/frontend.ex @@ -33,6 +33,7 @@ defmodule Pleroma.Frontend do label = "#{name} (#{ref})" tmp_dir = Path.join(dir(), "tmp") IO.puts("Downloading #{label}...") + with {_, :ok} <- {:download_or_unzip, download_or_unzip(frontend_info, tmp_dir, opts[:file])}, IO.puts("Installing #{label} to #{dest}"), @@ -92,7 +93,7 @@ defmodule Pleroma.Frontend do url = String.replace(frontend_info["build_url"], "${ref}", frontend_info["ref"]) with {:ok, %{status: 200, body: zip_body}} <- - Pleroma.HTTP.get(url, [], pool: :media, recv_timeout: 120_000) do + Pleroma.HTTP.get(url, [], recv_timeout: 120_000) do unzip(zip_body, dest) else {:error, e} -> {:error, e}