Refactor admin credentials output to use heredoc

This commit is contained in:
Tobias
2026-07-26 18:57:16 +02:00
committed by GitHub
parent 6beceb2b8f
commit aeaa9ad96c
+6 -6
View File
@@ -130,12 +130,12 @@ if [[ -z "$ADMIN_PASS" ]]; then
exit 1 exit 1
fi fi
RAILS_ENV=production $STD bundle exec bin/tootctl settings registrations approved RAILS_ENV=production $STD bundle exec bin/tootctl settings registrations approved
{ cat <<EOF > ~/mastodon.creds
echo "Mastodon Admin Credentials" Mastodon Admin Credentials
echo "URL: http://${LOCAL_IP}" URL: http://${LOCAL_IP}
echo "Email: admin@${LOCAL_IP}" Email: admin@${LOCAL_IP}
echo "Password: ${ADMIN_PASS}" Password: ${ADMIN_PASS}
} >~/mastodon.creds EOF
msg_ok "Created Admin Account" msg_ok "Created Admin Account"
msg_info "Creating Services" msg_info "Creating Services"