From 408fa0a3e9778076630c9f310bbd37240ba7e37f Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 13 Nov 2008 10:02:55 -0600
Subject: stop the error about can't create the mysql data dir on boot

---
 abs/core-testing/mysql/PKGBUILD | 2 +-
 abs/core-testing/mysql/mysqld   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/abs/core-testing/mysql/PKGBUILD b/abs/core-testing/mysql/PKGBUILD
index 87f8528..f854e9a 100644
--- a/abs/core-testing/mysql/PKGBUILD
+++ b/abs/core-testing/mysql/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: judd <jvinet@zeroflux.org>
 pkgname=mysql
 pkgver=5.0.60
-pkgrel=5
+pkgrel=6
 pkgdesc="A fast SQL database server"
 arch=(i686 x86_64)
 backup=(etc/my.cnf etc/conf.d/mysqld)
diff --git a/abs/core-testing/mysql/mysqld b/abs/core-testing/mysql/mysqld
index e7f90d2..8fd1b6c 100755
--- a/abs/core-testing/mysql/mysqld
+++ b/abs/core-testing/mysql/mysqld
@@ -22,7 +22,7 @@ if [ ! `egrep '^mysql:' /etc/passwd` ]; then
 fi
 
 if [ ! -d $MYSQLD_ROOT ]; then
-  mkdir $MYSQLD_ROOT
+  mkdir -p $MYSQLD_ROOT 2> /dev/null
   /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql 2>/dev/null > /dev/null
   chown -R mysql.mysql $MYSQLD_ROOT
 fi
-- 
cgit v0.12

