diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2007-06-13 13:24:07 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2007-06-13 13:24:07 +0000 |
commit | 9208266ec165c1ded5ee0fd6ea94cd967dadf520 (patch) | |
tree | 8206f832600c20e0a0eb6acb59ee7defb7769bf5 /databases | |
parent | 388b2879147500293ddd8fb69f71e505cd6b47ec (diff) | |
download | pkgsrc-9208266ec165c1ded5ee0fd6ea94cd967dadf520.tar.gz |
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 (limited to 'databases')
-rw-r--r-- | databases/mysql5-server/files/mysqld.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/databases/mysql5-server/files/mysqld.sh b/databases/mysql5-server/files/mysqld.sh index d7036a207e0..f222a72874a 100644 --- a/databases/mysql5-server/files/mysqld.sh +++ b/databases/mysql5-server/files/mysqld.sh @@ -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 @@ start_cmd="mysqld_start" mysqld_precmd() { - if [ ! -d ${mysqld_datadir} ]; then + if [ ! -d ${mysqld_datadir}/mysql ]; then mysqld_initdb fi } |