From 8eefe7585c3fac1a870c0b81ce3dbddb5f1cc6bd Mon Sep 17 00:00:00 2001 From: Yalh Date: Mon, 28 Jan 2019 02:28:00 +0100 Subject: [PATCH] Back to original --- scripts/install | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/scripts/install b/scripts/install index 4208c87..e229dbb 100755 --- a/scripts/install +++ b/scripts/install @@ -248,44 +248,29 @@ fi #================================================= # Give permission to the final_path chown -R "$app":"$app" "$final_path" +# App setup and db migration +( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix local.hex --force ) +( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix local.rebar --force ) +( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix deps.get ) +read -rsp $'Press enter to continue...\n' -# Install dependecies -su -l "$app" -s /bin/bash <