Refactor: Use heredoc when creating env files and creds/other (#15469)

* Use heredoc

* Fixes
This commit is contained in:
Slaviša Arežina authored and GitHub committed 2026-06-30 13:01:18 +02:00
1 parent 02bbb774c9
commit 4d56173394
65 files changed
+418 -424

No files matched your search

+6 -6
View File
@@ -85,12 +85,12 @@ user.is_superuser = True
user.is_staff = True
user.save()
EOF
{
echo ""
echo "Netbox-Django-Credentials"
echo -e "Django User: \e[32m$DJANGO_USER\e[0m"
echo -e "Django Password: \e[32m$DJANGO_PASS\e[0m"
} >>~/netbox.creds
cat <<EOF >~/netbox.creds
Netbox-Django-Credentials
Django User: $DJANGO_USER
Django Password: $DJANGO_PASS
EOF
msg_ok "Setup Django Admin"
motd_ssh