SOURCES: mysql.init - preserve indenting in mysqld.conf

glen glen at pld-linux.org
Mon Nov 7 18:13:02 CET 2005


Author: glen                         Date: Mon Nov  7 17:13:02 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- preserve indenting in mysqld.conf

---- Files affected:
SOURCES:
   mysql.init (1.87 -> 1.88) 

---- Diffs:

================================================================
Index: SOURCES/mysql.init
diff -u SOURCES/mysql.init:1.87 SOURCES/mysql.init:1.88
--- SOURCES/mysql.init:1.87	Fri Oct 28 19:27:59 2005
+++ SOURCES/mysql.init	Mon Nov  7 18:12:56 2005
@@ -680,9 +680,9 @@
 	chmod 751 "$MYSQL_CLUSTER_DIR" "$MYSQL_CLUSTER_DIR/mysqldb"
 
 	if [ -f /usr/share/mysql/mysqld.conf -a ! -f "$MYSQL_CLUSTER_DIR/mysqld.conf" ]; then
-	    sed -e "s#datadir.*=.*#datadir	= $MYSQL_DATA_DIR#g" \
-		-e "s#pid-file.*=.*#pid-file = $MYSQL_PIDFILE#g" \
-		-e "s#socket.*=.*#socket = $MYSQL_SOCKET#g" \
+	    sed -e "s#\(datadir.*\)=.*#\1= $MYSQL_DATA_DIR#g" \
+		-e "s#\(pid-file.*\)=.*#\1= $MYSQL_PIDFILE#g" \
+		-e "s#\(socket.*\)=.*#\1= $MYSQL_SOCKET#g" \
 		/usr/share/mysql/mysqld.conf > "$MYSQL_CLUSTER_DIR/mysqld.conf"
 	    chown root:root "$MYSQL_CLUSTER_DIR/mysqld.conf"
 	    chmod 640 "$MYSQL_CLUSTER_DIR/mysqld.conf"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/mysql.init?r1=1.87&r2=1.88&f=u




More information about the pld-cvs-commit mailing list