2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-14 15:20:29 +00:00

update dhcpd conf file when upgrade xcat (#2067)

This commit is contained in:
penguhyang
2016-11-04 12:47:21 +08:00
committed by yangsong
parent fc15887f84
commit ea5ffdc0bc

View File

@@ -1464,6 +1464,13 @@ sub initDB
xCAT::MsgUtils->message('E', "Could not add default value for site.xcatsslversion.");
}
}
# Set dhcpd.conf be updated when update xcat
my $cmds = "XCATBYPASS=Y $::XCATROOT/sbin/makedhcp -n 2>/dev/null";
xCAT::Utils->runcmd("$cmds", -1);
if ($::RUNCMD_RC != 0) {
xCAT::MsgUtils->message('E', "Could not create a new dhcp configuration file.");
}
}
# remove xcatserver,xcatclient