2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

change to symbol links instead force options

This commit is contained in:
cxhong
2020-03-04 16:02:34 -05:00
parent 68f2534b98
commit 1e7453e539

View File

@@ -930,9 +930,12 @@ sub initmysqldb
$cmd = "$sqlcmd --user=mysql";
#on rhels7.7, /usr/bin/mysql_install_db requires /usr/libexec/resolveip,
#but it's available at the /usr/bin/resolveip
#use --force to grant table entries use ipaddress instead of hostname
if ($::linuxos == "rhels7.7") {
$cmd = "$cmd --force";
my $resolveip="/usr/libexec/resolveip";
if (!(-x ($resolveip))) {
my $linkcmd="ln -s /usr/bin/resolveip $resolveip";
xCAT::Utils->runcmd($linkcmd, 0);
}
}
}
xCAT::Utils->runcmd($cmd, 0);