We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a4c2f commit 0277d84Copy full SHA for 0277d84
install/vst-install-ubuntu.sh
@@ -1158,6 +1158,15 @@ if [ "$fail2ban" = 'yes' ]; then
1158
fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
1159
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
1160
fi
1161
+ if [ "$vsftpd" = 'yes' ]; then
1162
+ #Create vsftpd Log File
1163
+ if [ ! -f "/var/log/vsftpd.log" ]; then
1164
+ touch /var/log/vsftpd.log
1165
+ fi
1166
+ fline=$(cat /etc/fail2ban/jail.local |grep -n vsftpd-iptables -A 2)
1167
+ fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
1168
+ sed -i "${fline}s/false/true/" /etc/fail2ban/jail.local
1169
1170
update-rc.d fail2ban defaults
1171
service fail2ban start
1172
check_result $? "fail2ban start failed"
0 commit comments