From 65a6d407d4ff5f9bcf09b6c316f349bd9c07e48a Mon Sep 17 00:00:00 2001 From: anmol Date: Mon, 5 Nov 2018 18:08:50 +0530 Subject: [PATCH] Force install Hex --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 8034bea..1299cc7 100755 --- a/scripts/install +++ b/scripts/install @@ -155,6 +155,8 @@ ynh_replace_string "__DB_PWD__" "$db_pwd" "$final_path/$app/config #================================================= # SETUP #================================================= +# Give permisiion to the final_path +chown -R "$app":"$app" "$final_path" ( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix local.hex --force ) ( cd $final_path/$app && sudo -u "$app" mix deps.get ) ( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix ecto.migrate )