Skip to content

Commit ec17c5c

Browse files
committed
Fix error hestiacp#1512
1 parent 5efa3ea commit ec17c5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bin/v-list-sys-services

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,12 @@ fi
294294

295295
# Checking FIREWALL Fail2ban extention
296296
if [ ! -z "$FIREWALL_EXTENSION" ]; then
297-
if [ "$(lsb_release -s -r)" = "20.04" ]; then
298-
get_srv_state $FIREWALL_EXTENSION f2b/server script
297+
if [ -e '/usr/bin/lsb_release' ]; then
298+
if [ "$(lsb_release -s -r)" = "20.04" ]; then
299+
get_srv_state $FIREWALL_EXTENSION f2b/server script
300+
else
301+
get_srv_state $FIREWALL_EXTENSION fail2ban-server script
302+
fi
299303
else
300304
get_srv_state $FIREWALL_EXTENSION fail2ban-server script
301305
fi

0 commit comments

Comments
 (0)