diff --git a/tests/p_vsftpd/0-install_vsftpd.sh b/tests/p_vsftpd/0-install_vsftpd.sh index e53e192..274b2bc 100755 --- a/tests/p_vsftpd/0-install_vsftpd.sh +++ b/tests/p_vsftpd/0-install_vsftpd.sh @@ -2,5 +2,12 @@ # Author: Athmane Madjoudj t_Log "Running $0 - installing vsFTPd." -t_InstallPackage vsftpd -t_ServiceControl vsftpd start +t_InstallPackage vsftpd +if [ "$centos_ver" -ge 8 ] ; then +cp -fp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.tf_p_vsftpd +sed -i 's/anonymous_enable=NO/anonymous_enable=YES/g' /etc/vsftpd/vsftpd.conf +fi +t_ServiceControl vsftpd restart +if [ "$centos_ver" -ge 8 ] ; then +mv -f /etc/vsftpd/vsftpd.conf.tf_p_vsftpd /etc/vsftpd/vsftpd.conf +fi