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 #=================================================