From 3ce4d81b3675cc45f0368c7d029b29049da64ed6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 22 Jan 2018 14:30:09 -0500 Subject: [PATCH] Improve robustness of confluent check Use the existence of the presumed log as a stronger indication of the use of confluent. Continue to shy away from slowing things down by getting the site table, to avoid the slow check. --- xCAT-server/bin/replaycons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/bin/replaycons b/xCAT-server/bin/replaycons index 043d972c0..d79328a0d 100755 --- a/xCAT-server/bin/replaycons +++ b/xCAT-server/bin/replaycons @@ -72,7 +72,7 @@ if ($hmtab) { my $file = "/var/log/consoles/$node"; #use confluent if it is there -if ((-x "/opt/confluent/bin/confetty") || (-x "/usr/bin/confetty")) { +if (((-x "/opt/confluent/bin/confetty") || (-x "/usr/bin/confetty")) && -f "/var/log/confluent/consoles/$node") { $file = "/var/log/confluent/consoles/$node"; }