From a60663132d9d067a7a1b5cbc95ab8ddf34877bb0 Mon Sep 17 00:00:00 2001 From: Christian Poessinger <christian@poessinger.com> Date: Sun, 4 Oct 2020 20:31:45 +0200 Subject: monitor: nat: T2951: fix warning by adjusting to latest CLI version --- scripts/vyatta-monitor-check-rule-log | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/vyatta-monitor-check-rule-log b/scripts/vyatta-monitor-check-rule-log index bc49491..5466edc 100644 --- a/scripts/vyatta-monitor-check-rule-log +++ b/scripts/vyatta-monitor-check-rule-log @@ -1,12 +1,9 @@ #!/bin/sh -API=/bin/cli-shell-api RULE_PATH=$1 RULE_NUM=$2 -LOG=`cli-shell-api returnEffectiveValue $RULE_PATH rule $RULE_NUM log` - -if [ "$LOG" != "enable" ]; then +if ! cli-shell-api existsActive $RULE_PATH rule $RULE_NUM log; then echo "Warning: logging is not enabled for rule $RULE_NUM" echo "For proper monitor operation enable logging before issuing this command:" echo "set $RULE_PATH rule $RULE_NUM log enable" -- cgit v1.2.3