[packages/mysql] init: move first cluster config to /etc

glen glen at pld-linux.org
Thu Sep 24 15:11:32 CEST 2015


commit 722bcca24522170077a0a34227412bd55dfa77d8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 24 16:11:11 2015 +0300

    init: move first cluster config to /etc

 mysql.init | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/mysql.init b/mysql.init
index 34923ec..51bb5cf 100755
--- a/mysql.init
+++ b/mysql.init
@@ -589,6 +589,10 @@ END_OF_MSG
 		sock=${MYSQL_SOCKET#/var/lib/mysql/} # make it relative if possible
 	    ln -s "$sock" /var/lib/mysql/mysql.sock
 	fi
+	# same for config, move to /etc
+	if [ ! -e /etc/mysql/mysqld.conf ]; then
+		mv "$MYSQL_CLUSTER_DIR/mysqld.conf" /etc/mysql/mysqld.conf
+	fi
 }
 
 #
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/722bcca24522170077a0a34227412bd55dfa77d8



More information about the pld-cvs-commit mailing list