From 250c2abb91ba442298a71440fd19e1a12feb33aa Mon Sep 17 00:00:00 2001 From: cxhong Date: Tue, 18 Feb 2020 17:06:10 -0500 Subject: [PATCH] Modify mysqlsetup to support SLE15 --- xCAT-client/bin/mysqlsetup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/mysqlsetup b/xCAT-client/bin/mysqlsetup index b7ad6f850..43f8ff78f 100755 --- a/xCAT-client/bin/mysqlsetup +++ b/xCAT-client/bin/mysqlsetup @@ -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";