From 2b01f7717ff17eb2dd84e5737e304d909a26422f Mon Sep 17 00:00:00 2001 From: Thomas Phillips Date: Mon, 27 Dec 2021 13:32:57 +0530 Subject: [PATCH] changes --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 8791302..aa67482 100644 --- a/scripts/install +++ b/scripts/install @@ -254,6 +254,14 @@ pushd "$final_path" ynh_exec_warn_less $rake_exec db:migrate ynh_exec_warn_less $rake_exec assets:precompile popd + +ynh_script_progression --message="Create admin initial user..." + +pushd "$final_path" + rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake" + ynh_exec_warn_less $rake_exec admin:create +popd + #================================================= # SETUP THE CRON FILE #=================================================