You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
442 B
14 lines
442 B
#!/bin/bash
|
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
|
|
t_Log "Running $0 - installing vsFTPd."
|
|
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
|