SOURCES: mysql.init - init now works

glen glen at pld-linux.org
Wed May 30 23:53:16 CEST 2007


Author: glen                         Date: Wed May 30 21:53:16 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- init now works

---- Files affected:
SOURCES:
   mysql.init (1.116 -> 1.117) 

---- Diffs:

================================================================
Index: SOURCES/mysql.init
diff -u SOURCES/mysql.init:1.116 SOURCES/mysql.init:1.117
--- SOURCES/mysql.init:1.116	Wed May 30 23:42:47 2007
+++ SOURCES/mysql.init	Wed May 30 23:53:10 2007
@@ -390,9 +390,9 @@
 
 	cat > $MYSQL_DATA_DIR/mysql-init.sql <<-EOF
 		CREATE DATABASE mysql;
-		$(cat /usr/share/mysql/mysql_system_tables.sql)
 		use mysql;
-		$(sed -e "s,@@hostname,$hostname,g;s,'root','mysql',g" /usr/share/mysql/mysql_system_tables_data.sql)
+		$(cat /usr/share/mysql/mysql_system_tables.sql)
+		$(sed -e "s,@@hostname,'$hostname',g;s,'root','mysql',g" /usr/share/mysql/mysql_system_tables_data.sql)
 EOF
 
 	ok=0
================================================================

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



More information about the pld-cvs-commit mailing list