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:
@ -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);
|
||||
|
Reference in New Issue
Block a user