We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5efa3ea commit ec17c5cCopy full SHA for ec17c5c
bin/v-list-sys-services
@@ -294,8 +294,12 @@ fi
294
295
# Checking FIREWALL Fail2ban extention
296
if [ ! -z "$FIREWALL_EXTENSION" ]; then
297
- if [ "$(lsb_release -s -r)" = "20.04" ]; then
298
- get_srv_state $FIREWALL_EXTENSION f2b/server script
+ if [ -e '/usr/bin/lsb_release' ]; then
+ 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
303
else
304
get_srv_state $FIREWALL_EXTENSION fail2ban-server script
305
fi
0 commit comments