mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-09 04:21:03 +02:00
Refactor: Use heredoc when creating env files and creds/other (#15469)
* Use heredoc * Fixes
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user