2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-06 19:45:13 +00:00

fix syntax error

This commit is contained in:
cxhong
2020-02-19 14:57:50 -05:00
parent 250c2abb91
commit 344d640292

View File

@@ -971,7 +971,7 @@ sub mysqlstart
else
{
if ($::MariaDB == 1) { # running MariaDB
if ($::linuxos =~ /rh.*/) || ($::linuxos =~ /sle15.*/ {
if ( ($::linuxos =~ /rh.*/) || ($::linuxos =~ /sles15.*/) ) {
$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.*/) || ($::linuxos =~ /sle15.*/{
if ( ($::linuxos =~ /rh.*/) || ($::linuxos =~ /sles15.*/) ){
$cmd = "chkconfig mariadb on";
} else { #sles
$cmd = "chkconfig mysql on";