From 1951417bf14d220a39b97ab99eb4d791f380618e Mon Sep 17 00:00:00 2001 From: Yalh Date: Mon, 28 Jan 2019 02:00:41 +0100 Subject: [PATCH] replacing sudo by su --- scripts/install | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/scripts/install b/scripts/install index e36f100..7cc5a03 100755 --- a/scripts/install +++ b/scripts/install @@ -250,27 +250,35 @@ fi chown -R "$app":"$app" "$final_path" pushd $final_path/$app -# App setup and db migration -sudo -u "$app" MIX_ENV=prod mix local.hex --force -sudo -u "$app" MIX_ENV=prod mix local.rebar --force -sudo -u "$app" mix deps.get +# Install dependecies +su "$app" <