From a6059396f8ee42645b9588809f81950539f01980 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Sun, 24 Aug 2025 14:14:25 +0200 Subject: Seed database to create Owner role --- scripts/install | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/install b/scripts/install index 49297e6..d7851d9 100644 --- a/scripts/install +++ b/scripts/install @@ -126,6 +126,7 @@ chown $app:$app "$config" pushd "$install_dir/live" ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails db:migrate --quiet + ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails db:seed --quiet ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile --quiet # Create the first admin user ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=Owner -- cgit v1.2.3-70-g09d2