mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-26 08:55:24 +00:00 
			
		
		
		
	Link file for all OSes
This commit is contained in:
		| @@ -146,8 +146,7 @@ if (-e "/etc/debian_version") { | ||||
| } | ||||
|  | ||||
| # determine whether redhat or sles | ||||
| $::linuxos = xCAT::Utils->osver("all"); # returns "name,version.release" | ||||
| $::linuxos =~ tr/,//d; # remove comma separating release name and version numbers | ||||
| $::linuxos = xCAT::Utils->osver(); | ||||
|  | ||||
| # is this MariaDB or MySQL | ||||
| $::MariaDB = 0; | ||||
| @@ -901,14 +900,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 | ||||
|         if ($::linuxos eq "rhels7.7") { | ||||
|             my $resolveip="/usr/libexec/resolveip"; | ||||
|             if (!(-x ($resolveip))) { | ||||
|                 my $linkcmd="ln -s /usr/bin/resolveip $resolveip"; | ||||
|                 xCAT::Utils->runcmd($linkcmd, 0); | ||||
|             } | ||||
|         # On rhels7.7, /usr/bin/mysql_install_db requires /usr/libexec/resolveip | ||||
|         # Link it to /usr/bin/resolveip for all OSes, just in case some future releases have the same requirement | ||||
|         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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user