2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +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
commit e97e5fa8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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