2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-29 13:38:12 +00:00

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.
This commit is contained in:
Jarrod Johnson
2018-01-22 14:30:09 -05:00
parent 2b3f8e424f
commit 3ce4d81b36

View File

@@ -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";
}