We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fbd301 commit 92a4c2fCopy full SHA for 92a4c2f
1 file changed
install/vst-install-rhel.sh
@@ -1202,6 +1202,15 @@ if [ "$fail2ban" = 'yes' ]; then
1202
fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
1203
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
1204
fi
1205
+ if [ "$vsftpd" = 'yes' ]; then
1206
+ #Create vsftpd Log File
1207
+ if [ ! -f "/var/log/vsftpd.log" ]; then
1208
+ touch /var/log/vsftpd.log
1209
+ fi
1210
+ fline=$(cat /etc/fail2ban/jail.local |grep -n vsftpd-iptables -A 2)
1211
+ fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
1212
+ sed -i "${fline}s/false/true/" /etc/fail2ban/jail.local
1213
1214
chkconfig fail2ban on
1215
/bin/mkdir -p /var/run/fail2ban
1216
sed -i "s/\[Service\]/\[Service\]\nExecStartPre = \/bin\/mkdir -p \/var\/run\/fail2ban/g" /usr/lib/systemd/system/fail2ban.service
0 commit comments