From: rinpatch Date: Wed, 19 Jun 2019 00:51:59 +0000 (+0300) Subject: Refactor pleroma_ctl copying to a generic function for copying files into the release dir X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a0a1361888a3986d589720a7eb39d49c913154f2;p=akkoma Refactor pleroma_ctl copying to a generic function for copying files into the release dir --- diff --git a/mix.exs b/mix.exs index df3253d5a..781560a0a 100644 --- a/mix.exs +++ b/mix.exs @@ -37,14 +37,14 @@ defmodule Pleroma.Mixfile do pleroma: [ include_executables_for: [:unix], applications: [ex_syslogger: :load, syslog: :load], - steps: [:assemble, ©_pleroma_ctl/1] + steps: [:assemble, ©_files/1] ] ] ] end - def copy_pleroma_ctl(%{path: target_path} = release) do - File.cp!("./rel/pleroma_ctl", Path.join([target_path, "bin", "pleroma_ctl"])) + def copy_files(%{path: target_path} = release) do + File.cp_r!("./rel/files", target_path) release end diff --git a/rel/pleroma_ctl b/rel/files/bin/pleroma_ctl similarity index 100% rename from rel/pleroma_ctl rename to rel/files/bin/pleroma_ctl