From aeaa9ad96c48b1e969a8fc0f5376dccc659f2f3e Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sun, 26 Jul 2026 18:57:16 +0200 Subject: [PATCH] Refactor admin credentials output to use heredoc --- install/mastodon-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/mastodon-install.sh b/install/mastodon-install.sh index be4ee1025..f3cfd2876 100644 --- a/install/mastodon-install.sh +++ b/install/mastodon-install.sh @@ -130,12 +130,12 @@ if [[ -z "$ADMIN_PASS" ]]; then exit 1 fi RAILS_ENV=production $STD bundle exec bin/tootctl settings registrations approved -{ - echo "Mastodon Admin Credentials" - echo "URL: http://${LOCAL_IP}" - echo "Email: admin@${LOCAL_IP}" - echo "Password: ${ADMIN_PASS}" -} >~/mastodon.creds +cat < ~/mastodon.creds + Mastodon Admin Credentials + URL: http://${LOCAL_IP} + Email: admin@${LOCAL_IP} + Password: ${ADMIN_PASS} +EOF msg_ok "Created Admin Account" msg_info "Creating Services"