function InstallFtpService { Message "Installing ftp service: proftpd\n" yum install -y proftpd || InstallationFailed /usr/local/fastpanel2/fastpanel services configure -f -p proftpd /usr/local/fastpanel2/fastpanel services handle --name=proftpd --action=enable /usr/local/fastpanel2/fastpanel services handle --name=proftpd --action=restart Success }