2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-28 13:58:14 +00:00

Modify mysqlsetup to support SLE15

This commit is contained in:
cxhong
2020-02-18 17:06:10 -05:00
parent 650aaadec8
commit 250c2abb91

View File

@@ -971,7 +971,7 @@ sub mysqlstart
else
{
if ($::MariaDB == 1) { # running MariaDB
if ($::linuxos =~ /rh.*/) {
if ($::linuxos =~ /rh.*/) || ($::linuxos =~ /sle15.*/ {
$ret = xCAT::Utils->startservice("mariadb");
} else { # sles
$ret = xCAT::Utils->startservice("mysql");
@@ -1084,7 +1084,7 @@ sub mysqlreboot
{
if ($::MariaDB == 1) { # MariaDB not MySQL
if ($::linuxos =~ /rh.*/) {
if ($::linuxos =~ /rh.*/) || ($::linuxos =~ /sle15.*/{
$cmd = "chkconfig mariadb on";
} else { #sles
$cmd = "chkconfig mysql on";