From 432faf7bd29bd8cb97b40a102dd382dbbc0f36f4 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Mon, 27 Dec 2021 13:38:45 -0300 Subject: [PATCH] chore(mix): copy emqx_ctl to release as well --- mix.exs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mix.exs b/mix.exs index 101460929..3a3f89508 100644 --- a/mix.exs +++ b/mix.exs @@ -288,6 +288,8 @@ defmodule EMQXUmbrella.MixProject do Enum.each( [ + "emqx", + "emqx_ctl", "common_defs.sh", "common_defs2.sh", "common_functions.sh" @@ -299,10 +301,12 @@ defmodule EMQXUmbrella.MixProject do ) ) - Mix.Generator.copy_file( - "bin/emqx", - Path.join(bin, "emqx"), - force: overwrite? + Enum.each( + [ + "emqx", + "emqx_ctl" + ], + &File.chmod!(Path.join(bin, &1), 0o755) ) release