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 | 934137f170310b33a35a1c2f8f32bcbd664cd0c3 (patch) | |
tree | 8206f832600c20e0a0eb6acb59ee7defb7769bf5 /databases/mysql5-server | |
parent | 7dfe3cb9832bcc65a54f981ace4d1383fa8b4fe4 (diff) | |
download | pkgsrc-934137f170310b33a35a1c2f8f32bcbd664cd0c3.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/mysql5-server')
-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 } |