diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-19 03:51:59 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-19 03:52:03 +0300 |
commit | a0a1361888a3986d589720a7eb39d49c913154f2 (patch) | |
tree | 8c86adab7da278d24c6f4c2a5a5a2f700936edf0 | |
parent | 3d76420512111006f678f820d1a20f866b07bdb9 (diff) | |
download | pleroma-a0a1361888a3986d589720a7eb39d49c913154f2.tar.gz |
Refactor pleroma_ctl copying to a generic function for copying files into the release dir
-rw-r--r-- | mix.exs | 6 | ||||
-rwxr-xr-x | rel/files/bin/pleroma_ctl (renamed from rel/pleroma_ctl) | 0 |
2 files changed, 3 insertions, 3 deletions
@@ -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 index ac7339762..ac7339762 100755 --- a/rel/pleroma_ctl +++ b/rel/files/bin/pleroma_ctl |