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

glen glen at pld-linux.org
Wed Oct 16 21:49:09 CEST 2013


commit df1ac9e1f4ed8545e2e86d3a4132e724fc22da0c
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 ab32354..b4dd314 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/df1ac9e1f4ed8545e2e86d3a4132e724fc22da0c



More information about the pld-cvs-commit mailing list