[packages/percona-server/v5.0.x: 190/202] when cluster init fails because it already exists, exit non-zero

glen glen at pld-linux.org
Wed Oct 21 16:25:00 CEST 2015


commit f1b40adcb654746a994ac6606ab9b70f06fa512d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Oct 16 22:49:06 2013 +0300

    when cluster init fails because it already exists, exit non-zero

 mysql.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/mysql.init b/mysql.init
index 632e9bb..fbc7ab1 100755
--- a/mysql.init
+++ b/mysql.init
@@ -455,7 +455,7 @@ mysqlinit() {
 		nls "Seems that database is initialized now. Remove by hand %s" "$MYSQL_DATA_DIR/mysql"
 		nls "before initializing database."
 		nls "For now skipping cluster %s." "$clusterdir"
-		return
+		exit 6
 	fi
 
 	show "Installing MySQL system tables for $MYSQL_DATA_DIR"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-server.git/commitdiff/431f68fe79a66d5dfdd53f2655709e6c925fbc22



More information about the pld-cvs-commit mailing list