testing: Don't log anything to the console if auth.log or daemon.log do not exist
This commit is contained in:
+2
-2
@@ -740,7 +740,7 @@ do
|
||||
for host in $IPSECHOSTS
|
||||
do
|
||||
eval HOSTLOGIN=root@\$ipv4_${host}
|
||||
ssh $SSHCONF $HOSTLOGIN "grep -E 'charon|last message repeated|imcv|pt-tls-client' \
|
||||
ssh $SSHCONF $HOSTLOGIN "grep -s -E 'charon|last message repeated|imcv|pt-tls-client' \
|
||||
/var/log/auth.log" >> $TESTRESULTDIR/${host}.auth.log
|
||||
done
|
||||
|
||||
@@ -752,7 +752,7 @@ do
|
||||
for host in $IPSECHOSTS
|
||||
do
|
||||
eval HOSTLOGIN=root@\$ipv4_${host}
|
||||
ssh $SSHCONF $HOSTLOGIN "grep -E 'charon|last message repeated|imcv' \
|
||||
ssh $SSHCONF $HOSTLOGIN "grep -s -E 'charon|last message repeated|imcv' \
|
||||
/var/log/daemon.log" >> $TESTRESULTDIR/${host}.daemon.log
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user