2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-22 05:55:35 +00:00

Fix a code error

This commit is contained in:
bxuxa
2019-03-21 17:09:29 +08:00
parent d4d4a0c1b5
commit 26fb874a84

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