From a48dc8c20ee59c764a37786cba4900bd78905f73 Mon Sep 17 00:00:00 2001 From: Yalh Date: Thu, 24 Jan 2019 02:29:57 +0100 Subject: [PATCH] spacing --- scripts/install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 8058919..34b90a5 100755 --- a/scripts/install +++ b/scripts/install @@ -252,15 +252,21 @@ 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_ENV=prod mix local.rebar --force ) ( cd $final_path/$app && sudo -u "$app" mix deps.get ) + ynh_psql_execute_as_root \ "ALTER USER $app WITH SUPERUSER;" + ( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix ecto.migrate --force ) + ynh_psql_execute_as_root \ "ALTER USER $app WITH NOSUPERUSER;" + # Add user and retrieve a password reset link that you can then send to the user admin_pass_reset_url=$( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" | tail -1 ) + # Make user moderator ( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user set "$admin" --moderator ) + # Make user admin ( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user set "$admin" --admin )