From bf88bf97531783413c0caba9995b0c5d5b68aa93 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jul 28 2019 18:55:41 +0000 Subject: Fix lftp tests in CentOS8 (vsftpd disables anonymous by default) --- diff --git a/tests/p_lftp/20_lftp_ftp.sh b/tests/p_lftp/20_lftp_ftp.sh index b0104c1..0fe0186 100755 --- a/tests/p_lftp/20_lftp_ftp.sh +++ b/tests/p_lftp/20_lftp_ftp.sh @@ -6,8 +6,15 @@ # Christoph Galuschka t_Log "Running $0 - installing vsFTPd for local lftp test." -t_InstallPackage vsftpd +t_InstallPackage vsftpd +if [ "$centos_ver" -ge 8 ] ; then +cp -fp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.tf_p_lftp +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_lftp /etc/vsftpd/vsftpd.conf +fi # Destination File TESTFILE=/tmp/t_functional-lftp-test.txt