|
|
|
@ -1320,6 +1320,7 @@ if [ "$apache" = 'yes' ]; then
|
|
|
|
|
cp -f $HESTIA_INSTALL_DIR/httpd/httpd.conf /etc/httpd/conf/
|
|
|
|
|
cp -f $HESTIA_INSTALL_DIR/httpd/status.conf /etc/httpd/conf.h.d/hestia-status.conf
|
|
|
|
|
cp -f $HESTIA_INSTALL_DIR/logrotate/httpd /etc/logrotate.d/
|
|
|
|
|
cp -f $HESTIA_INSTALL_DIR/httpd/hestiacp-httpd.conf /usr/lib/systemd/system/httpd.service.d/
|
|
|
|
|
|
|
|
|
|
# Enable needed modules
|
|
|
|
|
if [ "$nginx" = "no" ]; then
|
|
|
|
@ -1737,6 +1738,9 @@ if [ "$fail2ban" = 'yes' ]; then
|
|
|
|
|
if [ -f /etc/fail2ban/jail.d/00-firewalld.conf ]; then
|
|
|
|
|
cat /dev/null > /etc/fail2ban/jail.d/00-firewalld.conf
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
sed -i "s/^backend[ ]*=[ ]*auto/backend = systemd/gi" /etc/fail2ban/jail.conf
|
|
|
|
|
|
|
|
|
|
systemctl enable fail2ban --now
|
|
|
|
|
check_result $? "fail2ban start failed"
|
|
|
|
|
fi
|
|
|
|
|