From e7d7822ab75eeb5b35fd7ee6d9a1cfc4e730272e Mon Sep 17 00:00:00 2001 From: James Meyer Date: Mon, 19 Jan 2009 09:21:58 -0600 Subject: add mkdir -p to the default mysql run script redirect crap to /dev/null --- abs/core-testing/mysql/PKGBUILD | 2 +- abs/core-testing/mysql/__changelog | 3 ++- abs/core-testing/mysql/mysqld | 4 ++-- abs/core-testing/runit-scripts/PKGBUILD | 2 +- abs/core-testing/runit-scripts/runitscripts/services/mysql/run | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/abs/core-testing/mysql/PKGBUILD b/abs/core-testing/mysql/PKGBUILD index 8c9763a..11df8fb 100644 --- a/abs/core-testing/mysql/PKGBUILD +++ b/abs/core-testing/mysql/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: judd pkgname=mysql pkgver=5.0.75 -pkgrel=2 +pkgrel=3 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/__changelog b/abs/core-testing/mysql/__changelog index 5e620ec..4fa7078 100644 --- a/abs/core-testing/mysql/__changelog +++ b/abs/core-testing/mysql/__changelog @@ -4,4 +4,5 @@ my.cnf mysqld -redirect output to /dev/null - --skip-name-resolve \ No newline at end of file + --skip-name-resolve + replace mkdir with mkdir -p diff --git a/abs/core-testing/mysql/mysqld b/abs/core-testing/mysql/mysqld index 7bada3d..5857df8 100755 --- a/abs/core-testing/mysql/mysqld +++ b/abs/core-testing/mysql/mysqld @@ -22,8 +22,8 @@ if [ ! `egrep '^mysql:' /etc/passwd` ]; then fi if [ ! -d $MYSQLD_ROOT ]; then - mkdir $MYSQLD_ROOT - /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql + mkdir -p $MYSQLD_ROOT + /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql 2>/dev/null 1>/dev/null chown -R mysql.mysql $MYSQLD_ROOT fi diff --git a/abs/core-testing/runit-scripts/PKGBUILD b/abs/core-testing/runit-scripts/PKGBUILD index ccd0d1f..8deb06f 100755 --- a/abs/core-testing/runit-scripts/PKGBUILD +++ b/abs/core-testing/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=1.8.0 -pkgrel=26 +pkgrel=27 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core-testing/runit-scripts/runitscripts/services/mysql/run b/abs/core-testing/runit-scripts/runitscripts/services/mysql/run index 10b1c75..bfb367f 100755 --- a/abs/core-testing/runit-scripts/runitscripts/services/mysql/run +++ b/abs/core-testing/runit-scripts/runitscripts/services/mysql/run @@ -17,8 +17,8 @@ if [ ! `egrep '^mysql:' /etc/passwd` ]; then fi if [ ! -d $MYSQLD_ROOT ]; then - mkdir $MYSQLD_ROOT - /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql + mkdir -p $MYSQLD_ROOT + /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql 2>/dev/null 1>/dev/null chown -R mysql.mysql $MYSQLD_ROOT fi -- cgit v0.12