2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-09 04:50:15 +00:00

Merge pull request #6151 from robin2008/code-error

Fix a code error
This commit is contained in:
Gᴏɴɢ Jie
2019-03-21 17:24:35 +08:00
committed by GitHub

View File

@@ -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);