mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-06 21:29:00 +02:00
Refactor: Use heredoc when creating env files and creds/other (#15469)
* Use heredoc * Fixes
This commit is contained in:
1 parent
02bbb774c9
commit
4d56173394
65 files changed
+418
-424
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user