diff --git a/abra.sh b/abra.sh index 320c341..a2293d2 100644 --- a/abra.sh +++ b/abra.sh @@ -9,7 +9,8 @@ sub_rake() { # shellcheck disable=SC2034 abra__service_="streaming" - # Using streaming for rake since it is the least likely to flap + + # Using streaming for rake since it is the least likely to flap sub_app_run bundle exec rake "$@" } @@ -18,18 +19,21 @@ sub_tootctl() { export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base) export DB_PASS=$(cat /run/secrets/db_password) - # shellcheck disable=SC2034 + # shellcheck disable=SC2034 abra__service_="web" - # Using streaming for rake since it is the least likely to flap + + # Using streaming for rake since it is the least likely to flap sub_app_run bin/tootctl "$@" } sub_setup() { info "Setting up mastodon database" silence + sub_rake "db:setup" unsilence success "Mastodon's database is now up! 'web' and 'sidekiq' services should now stop failing." + echo "Do you want to create an admin user? (Extremely recommended!)" prompt_confirm read -rp "Username: " USERNAME