[omd-commits] OMD Git: omd: mysql: mysql_install_db ignored the local .my.cnf

git version control git at mathias-kettner.de
Fri Jun 21 17:52:34 CEST 2013


Module:   omd
Branch:   master
Commit:   9146128b7fa22221a9a5cd045ce232f4ea924ac1
URL:      http://omdistro.org/projects/omd/repository/revisions/9146128b7fa22221a9a5cd045ce232f4ea924ac1

Author:   Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Fri Jun 21 17:49:04 2013 +0200
Commiter: Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Fri Jun 21 17:49:04 2013 +0200

mysql: mysql_install_db ignored the local .my.cnf

---

 packages/mysql-omd/skel/etc/init.d/mysql |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/mysql-omd/skel/etc/init.d/mysql b/packages/mysql-omd/skel/etc/init.d/mysql
index b5beb25..805b142 100644
--- a/packages/mysql-omd/skel/etc/init.d/mysql
+++ b/packages/mysql-omd/skel/etc/init.d/mysql
@@ -81,7 +81,7 @@ mysql_wait_stop() {
 check_install_db() {
     if [ ! -e ~/var/mysql/mysql ] ; then
         echo "first start of MySQL, creating initial database..."
-        mysql_install_db > $OMD_ROOT/var/log/omd.log 2>&1
+        mysql_install_db --defaults-file=$MYSQL_CNF > $OMD_ROOT/var/log/omd.log 2>&1
         if [ $? != 0 ]; then
             echo "failed: please have a look at $OMD_ROOT/var/log/omd.log"
             echo "and http://omdistro.org/wiki/omd/FAQ"



More information about the omd-commits mailing list