Blame tests/p_vsftpd/0-install_vsftpd.sh

Karanbir Singh 0b5bb2
#!/bin/bash
Karanbir Singh 0b5bb2
# Author: Athmane Madjoudj <athmanem@gmail.com>
Karanbir Singh 0b5bb2
Christoph Galuschka 966751
t_Log "Running $0 - installing vsFTPd."
Pablo Greco 3f95c3
t_InstallPackage vsftpd
Pablo Greco 3f95c3
if [ "$centos_ver" -ge 8 ] ; then
Pablo Greco 3f95c3
cp -fp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.tf_p_vsftpd
Pablo Greco 3f95c3
sed -i 's/anonymous_enable=NO/anonymous_enable=YES/g' /etc/vsftpd/vsftpd.conf
Pablo Greco 3f95c3
fi
Pablo Greco 3f95c3
t_ServiceControl vsftpd restart
Pablo Greco 3f95c3
if [ "$centos_ver" -ge 8 ] ; then
Pablo Greco 3f95c3
mv -f /etc/vsftpd/vsftpd.conf.tf_p_vsftpd /etc/vsftpd/vsftpd.conf
Pablo Greco 3f95c3
fi