mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-11 22:10:14 +00:00
Modify mysqlsetup scripts on rhels7.7
This commit is contained in:
@@ -928,6 +928,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";
|
||||
}
|
||||
}
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
|
Reference in New Issue
Block a user