Added fixes
This commit is contained in:
@@ -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
|
||||
|
||||
3
install/rpm/httpd/hestiacp-httpd.conf
Normal file
3
install/rpm/httpd/hestiacp-httpd.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Reference in New Issue
Block a user