pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/mysql5-server/files mysqld_precmd(): check i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f51a61ff984
branches:  trunk
changeset: 529943:0f51a61ff984
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Jun 13 13:24:07 2007 +0000

description:
mysqld_precmd(): check if ${mysql_datadir}/mysql dir exists before
starting mysqld, otherwise if mysql_datadir has not been initialized
it will fail.

Patch from Edgar Fur via PR pkg/36138.

diffstat:

 databases/mysql5-server/files/mysqld.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 2527a2429b4d -r 0f51a61ff984 databases/mysql5-server/files/mysqld.sh
--- a/databases/mysql5-server/files/mysqld.sh   Wed Jun 13 09:50:46 2007 +0000
+++ b/databases/mysql5-server/files/mysqld.sh   Wed Jun 13 13:24:07 2007 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.1.1.1 2005/10/31 09:22:26 xtraeme Exp $
+# $NetBSD: mysqld.sh,v 1.2 2007/06/13 13:24:07 xtraeme Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -36,7 +36,7 @@
 
 mysqld_precmd()
 {
-       if [ ! -d ${mysqld_datadir} ]; then
+       if [ ! -d ${mysqld_datadir}/mysql ]; then
                mysqld_initdb
        fi
 }



Home | Main Index | Thread Index | Old Index