From 26fb874a84449dadad2bad67acc2d489c8601d8e Mon Sep 17 00:00:00 2001 From: bxuxa Date: Thu, 21 Mar 2019 17:09:29 +0800 Subject: [PATCH] Fix a code error --- xCAT-server/lib/perl/xCAT/Goconserver.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Goconserver.pm b/xCAT-server/lib/perl/xCAT/Goconserver.pm index a6eea15d5..0873872b7 100644 --- a/xCAT-server/lib/perl/xCAT/Goconserver.pm +++ b/xCAT-server/lib/perl/xCAT/Goconserver.pm @@ -537,7 +537,7 @@ sub switch_goconserver { sub switch_conserver { my $callback = shift; # ignore SN as it is handled by AAsn - if ((-x "/usr/bin/systemctl" || -x "-x /bin/systemctl") && !$isSN) { + if ((-x "/usr/bin/systemctl" || -x "/bin/systemctl") && !$isSN) { my $cmd = "systemctl disable goconserver"; if (-x "/usr/bin/goconserver") { xCAT::Utils->runcmd($cmd, -1);