Skip to content

Commit a0c6f12

Browse files
committed
Adjust v-list-sys-services to honor the changed fail2ban service name.
This commit fixes hestiacp#804
1 parent 5df90da commit a0c6f12

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
## [CURRENT] - Development
55
### Features
66
- Added support for configuring individual TTL per DNS record. Thanks to @jaapmarcus
7+
- Added support for Ubuntu Server 20.04 LTS
78

89
### Bugfixes
910
- Disable Apache2 Server Status Module by default.
@@ -20,6 +21,7 @@ All notable changes to this project will be documented in this file.
2021
- Don't calculate /home folder size in v-list-sys-info.
2122
- Cleanup temporary files when uploading custom SSL cert from WebUi.
2223
- Cleanup temporary files when adding/renewing letsencrypt SSL cert.
24+
- Adjust v-list-sys-services to honor the changed fail2ban service name.
2325

2426
## [1.1.1] - 2020-03-24 - Hotfix
2527
### Features

bin/v-list-sys-services

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@ fi
284284

285285
# Checking FIREWALL Fail2ban extention
286286
if [ ! -z "$FIREWALL_EXTENSION" ]; then
287-
get_srv_state $FIREWALL_EXTENSION fail2ban-server script
287+
if [ "$(lsb_release -s -r)" = "20.04" ]; then
288+
get_srv_state $FIREWALL_EXTENSION f2b/server script
289+
else
290+
get_srv_state $FIREWALL_EXTENSION fail2ban-server script
291+
fi
288292
data="$data\nNAME='$FIREWALL_EXTENSION' SYSTEM='brute-force monitor'"
289293
data="$data STATE='$state' CPU='$cpu' MEM='$mem' RTIME='$rtime'"
290294
fi

0 commit comments

Comments
 (0)