Skip to content

Commit a84d8ce

Browse files
neto737jaapmarcus
andauthored
Fix issue when enabling mysqld-iptables in Fail2Ban (hestiacp#3025)
* Fix issue when enabling mysqld-iptables * Added script to update current installations * Add default settings Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent 2c4f481 commit a84d8ce

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

install/deb/fail2ban/jail.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ logpath = /var/log/dovecot.log
2828
enabled = false
2929
filter = mysqld-auth
3030
action = hestia[name=DB]
31-
logpath = /var/log/mysql.log
31+
logpath = /var/log/mysql/error.log
3232
maxretry = 5
3333

3434
[hestia-iptables]

install/rpm/fail2ban/jail.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ logpath = /var/log/dovecot.log
2828
enabled = false
2929
filter = mysqld-auth
3030
action = hestia[name=DB]
31-
logpath = /var/log/mysql.log
31+
logpath = /var/log/mysql/error.log
3232
maxretry = 5
3333

3434
[hestia-iptables]

install/upgrade/versions/1.6.12.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
# Hestia Control Panel upgrade script for target version 1.6.12
4+
5+
#######################################################################################
6+
####### Place additional commands below. #######
7+
#######################################################################################
8+
####### Pass through information to the end user in case of a issue or problem #######
9+
####### #######
10+
####### Use add_upgrade_message "My message here" to include a message #######
11+
####### in the upgrade notification email. Example: #######
12+
####### #######
13+
####### add_upgrade_message "My message here" #######
14+
####### #######
15+
####### You can use \n within the string to create new lines. #######
16+
#######################################################################################
17+
18+
upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'no'
19+
upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'no'
20+
upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'no'
21+
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'no'
22+
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
23+
24+
if [ -f "/etc/fail2ban/jail.local" ]; then
25+
sed -i "s|/var/log/mysql.log|/var/log/mysql/error.log|g" /etc/fail2ban/jail.local
26+
fi

0 commit comments

Comments
 (0)