[packages/mysql/MYSQL_5_0] when cluster init fails because it already exists, exit non-zero

glen glen at pld-linux.org
Thu Nov 14 10:22:22 CET 2013


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/mysql.git/commitdiff/f1b40adcb654746a994ac6606ab9b70f06fa512d



More information about the pld-cvs-commit mailing list