脚本EOF两边有空格导致出错
[root@zabbix-agent files]# sh ftpinstall.sh
useradd: user 'ceshi' already exists
Changing password for user ceshi.
passwd: all authentication tokens updated successfully.
Preparing... ################################# [100%]
package vsftpd-3.0.2-28.el7.x86_64 is already installed
ftpinstall.sh: line 31: warning: here-document at line 10 delimited by end-of-file (wanted `EOF')