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

* Use heredoc

* Fixes
This commit is contained in:
Slaviša Arežina
2026-06-30 13:01:18 +02:00
committed by GitHub
parent 02bbb774c9
commit 4d56173394
65 changed files with 418 additions and 424 deletions
+5 -5
View File
@@ -43,11 +43,11 @@ sed -i "s|#chroot_local_user=YES|chroot_local_user=NO|g" /etc/vsftpd.conf
systemctl restart -q vsftpd.service
{
echo "FTP-Credentials"
echo "Username: ftpuser"
echo "Password: $FTP_PASS"
} >>~/ftp.creds
cat <<EOF >~/ftp.creds
FTP-Credentials
Username: ftpuser
Password: $FTP_PASS
EOF
msg_ok "FTP server setup completed"