Comment formatting and spacing

This commit is contained in:
decentral1se 2021-05-28 15:30:24 +02:00
parent d3ada7142c
commit 3cec66b847
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 7 additions and 3 deletions

10
abra.sh
View File

@ -9,7 +9,8 @@ sub_rake() {
# shellcheck disable=SC2034 # shellcheck disable=SC2034
abra__service_="streaming" 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 "$@" sub_app_run bundle exec rake "$@"
} }
@ -18,18 +19,21 @@ sub_tootctl() {
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base) export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
export DB_PASS=$(cat /run/secrets/db_password) export DB_PASS=$(cat /run/secrets/db_password)
# shellcheck disable=SC2034 # shellcheck disable=SC2034
abra__service_="web" 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_app_run bin/tootctl "$@"
} }
sub_setup() { sub_setup() {
info "Setting up mastodon database" info "Setting up mastodon database"
silence silence
sub_rake "db:setup" sub_rake "db:setup"
unsilence unsilence
success "Mastodon's database is now up! 'web' and 'sidekiq' services should now stop failing." 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!)" echo "Do you want to create an admin user? (Extremely recommended!)"
prompt_confirm prompt_confirm
read -rp "Username: " USERNAME read -rp "Username: " USERNAME