From 87a18b54add844a36acb935c6d22f49741bf5c36 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 10 Jun 2024 15:53:48 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-yum/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 33b48301d..edf2839f4 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -424,10 +424,10 @@ def initMysql8Data(): cmd = serverdir + '/bin/usr/sbin/mysqld --basedir=' + serverdir + '/bin/usr --datadir=' + \ datadir + ' --initialize-insecure --lower-case-table-names=1' data = mw.execShell(cmd) - + if data[1] != '': - print(data[1]) - exit(-1) + print(data[1]) + exit(-1) if not mw.isAppleSystem(): mw.execShell('chown -R mysql:mysql ' + datadir)