From cf4d2233039818f36823815292f8b3de06c15ec9 Mon Sep 17 00:00:00 2001 From: lapineige Date: Fri, 26 Jan 2024 18:19:12 +0100 Subject: [PATCH] admin account creation --- scripts/install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 13d202b..8f34097 100644 --- a/scripts/install +++ b/scripts/install @@ -110,6 +110,12 @@ ynh_script_progression --message="Starting Bonfire daemon service..." --weight=1 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="[info] Running Bonfire.Web.Endpoint" +#================================================= +# CREATE ADMIN USER +#================================================= +ynh_script_progression --message="Creating admin user account..." --weight=1 +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just cmd /var/www/bonfire/_build/prod/rel/bonfire/bin/bonfire rpc 'Bonfire.Me.make_account_and_user("$admin", "$(ynh_user_get_info --username="$admin" --key=mail)", "$password")'" + #================================================= # END OF SCRIPT #=================================================