From f06600605a57990fc68045ea13d015074af31364 Mon Sep 17 00:00:00 2001 From: Benjamin Richter Date: Mon, 5 Feb 2024 00:08:13 +0100 Subject: [PATCH] Add missing slash Because of the missing slash, it was not possible to create the log file. --- nodes/orchestration/package/open-appsec-ctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/orchestration/package/open-appsec-ctl.sh b/nodes/orchestration/package/open-appsec-ctl.sh index 84bace9..52a3e16 100644 --- a/nodes/orchestration/package/open-appsec-ctl.sh +++ b/nodes/orchestration/package/open-appsec-ctl.sh @@ -1817,7 +1817,7 @@ run() # Initials - r echo $var_policy_file elif [ "-vl" = "$1" ] || [ "--view-logs" = "$1" ]; then record_command $@ - if ls /var/log/nano_agent/cp-nano-http-transaction-handler.log? 1>dev/null 2>&1; then + if ls /var/log/nano_agent/cp-nano-http-transaction-handler.log? 1>/dev/null 2>&1; then less $LOG_FILE_PATH/nano_agent/cp-nano-http-transaction-handler.log? else echo "No logs found"