aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTagadda <36127788+Tagadda@users.noreply.github.com>2025-08-24 14:14:25 +0200
committerTagadda <36127788+Tagadda@users.noreply.github.com>2025-08-24 14:14:25 +0200
commita6059396f8ee42645b9588809f81950539f01980 (patch)
tree96af2c2c2b05722f6147ba940ca28e7d9bb7ebdb /scripts
parentefb0166d5be53944abb484c0077aaa1e301d3cea (diff)
downloadmastodon_ynh-a6059396f8ee42645b9588809f81950539f01980.tar.gz
mastodon_ynh-a6059396f8ee42645b9588809f81950539f01980.tar.bz2
mastodon_ynh-a6059396f8ee42645b9588809f81950539f01980.zip
Seed database to create Owner role
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install1
1 files changed, 1 insertions, 0 deletions
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