2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

fix issue 3617

This commit is contained in:
ertaozh 2017-08-07 02:23:39 -04:00
parent eb96ab7744
commit 818fd8d5a3

View File

@ -941,7 +941,9 @@ unless ($foreground) {
}
# Cache the hostname, restart xcatd if hostname is changed after xcatd running
my $MYXCATSERVER = Sys::Hostname::hostname;
my $myhostname = Sys::Hostname::hostname;
my @mynamearray = split(/\./, $myhostname);
my $MYXCATSERVER = $mynamearray[0];
$dbmaster = xCAT::Table::init_dbworker;
if ($enable_perf) {