Skip to content

Commit 145aab2

Browse files
committed
Merge remote-tracking branch 'origin/main' into staging/release/1.4
2 parents 3cfe05b + 88bc0a9 commit 145aab2

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

install/deb/firewall/ipset/blacklist.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BLACKLISTS=(
88
"https://www.projecthoneypot.org/list_of_ips.php?t=d&rss=1" # Project Honey Pot Directory of Dictionary Attacker IPs
99
"https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1" # TOR Exit Nodes
1010
"https://www.maxmind.com/en/high-risk-ip-sample-list" # MaxMind GeoIP Anonymous Proxies
11+
"http://danger.rulez.sk/projects/bruteforceblocker/blist.php" # BruteForceBlocker IP List
1112
"https://www.spamhaus.org/drop/drop.lasso" # Spamhaus Don't Route Or Peer List (DROP)
1213
"https://cinsscore.com/list/ci-badguys.txt" # C.I. Army Malicious IP List
1314
"https://lists.blocklist.de/lists/all.txt" # blocklist.de attackers

install/upgrade/manual/migrate_phpmyadmin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ then
3838
cp -r /var/lib/phpmyadmin/* /root/hst_backup_man/var_phmyadmin
3939

4040
echo '[ * ] Remove PHPmyAdmin via ATP'
41-
apt-get autoremove phpmyadmin
41+
apt-mark hold phpmyadmin
4242

4343
echo '[ * ] Delete possible trail'
4444
# make sure everything is deleted

install/upgrade/manual/migrate_roundcube.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]
3030
then
3131
version=$(cat /usr/share/roundcube/index.php | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
3232
# Backup database
33+
echo "#version $version" >> ~/roundcube.sql
3334
echo "SET FOREIGN_KEY_CHECKS = 0;" >> ~/roundcube.sql
3435
mysqldump --add-drop-table roundcube >> ~/roundcube.sql
3536
echo "SET FOREIGN_KEY_CHECKS = 1;" >> ~/roundcube.sql
@@ -44,6 +45,11 @@ then
4445
# Install roundcube
4546
$HESTIA/bin/v-add-sys-roundcube
4647
# restore backup
48+
echo "SET FOREIGN_KEY_CHECKS = 0;" > ~/drop_all_tables.sql
49+
( mysqldump --add-drop-table --no-data -u root roundcube | grep 'DROP TABLE' ) >> ./drop_all_tables.sql
50+
echo "SET FOREIGN_KEY_CHECKS = 1;" >> ~/drop_all_tables.sql
51+
mysql -u root roundcube < ./drop_all_tables.sql
52+
4753
mysql roundcube < ~/roundcube.sql
4854
/var/lib/roundcube/bin/update.sh --version "$version"
4955
fi

install/upgrade/versions/1.4.0.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fi
117117
if [ ! -z "$WEBMAIL_SYSTEM" ]; then
118118
for user in $($BIN/v-list-users plain | cut -f1); do
119119
for domain in $($BIN/v-list-mail-domains $user plain | cut -f1); do
120-
$BIN/v-add-mail-domain-webmail $user $domain
120+
$BIN/v-add-mail-domain-webmail $user $domain '' no
121121
done
122122
done
123123
fi
@@ -187,10 +187,6 @@ if [ -f "/etc/clamav/clamd.conf" ]; then
187187
$HESTIA/bin/v-add-user-notification admin 'ClamAV config has been overwritten' 'Warning: If you have manualy changed /etc/clamav/clamd.conf and any changes you made will be lost an backup has been created in the /root/hst_backups folder with the original config. If you have not changed the config file you can ignore this message'
188188
fi
189189

190-
if [ -f "$HESTIA/data/firewall/ipset/blacklist.sh" ]; then
191-
sed -i '/BruteForceBlocker/d' $HESTIA/data/firewall/ipset/blacklist.sh
192-
fi
193-
194190
##### COMMANDS FOR V1.5.X
195191

196192
# Back up default package and install latest version

0 commit comments

Comments
 (0)