Merge pull request #98 from benjja/main

Log file couldn't be created
This commit is contained in:
WrightNed 2024-02-13 22:06:13 +02:00 committed by GitHub
commit ee2c098995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1821,7 +1821,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"