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 )