mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-02 19:40:10 +00:00
Merge pull request #6620 from cxhong/mysql
Modify mysqlsetup scripts on rhels7.7
This commit is contained in:
commit
494a346f4a
@ -928,6 +928,15 @@ 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
|
||||
if ($::linuxos == "rhels7.7") {
|
||||
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);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user