summaryrefslogtreecommitdiffstats
path: root/abs/core/mysql/mysql.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-02-10 01:22:24 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-02-10 01:22:24 (GMT)
commita93968f14349dbd7b4bb3d51cd2a2742dd545661 (patch)
treef4313fac4472f242563518de8212d48114588005 /abs/core/mysql/mysql.install
parentd93f46c09f1b7c11522382a38506590fef280db2 (diff)
downloadlinhes_pkgbuild-a93968f14349dbd7b4bb3d51cd2a2742dd545661.zip
linhes_pkgbuild-a93968f14349dbd7b4bb3d51cd2a2742dd545661.tar.gz
linhes_pkgbuild-a93968f14349dbd7b4bb3d51cd2a2742dd545661.tar.bz2
mysql: update to 5.6.23
mysqld.rc and mysql.install: changes needed for install
Diffstat (limited to 'abs/core/mysql/mysql.install')
-rw-r--r--abs/core/mysql/mysql.install7
1 files changed, 4 insertions, 3 deletions
diff --git a/abs/core/mysql/mysql.install b/abs/core/mysql/mysql.install
index f420406..586fead 100644
--- a/abs/core/mysql/mysql.install
+++ b/abs/core/mysql/mysql.install
@@ -1,7 +1,7 @@
if [[ $(command -v my_print_defaults >/dev/null 2>&1) ]]; then
datadir=$(my_print_defaults mysqld | sed -n "s/^--datadir=//p")
fi
-[[ -z $datadir ]] && datadir=/var/lib/mysql
+[[ -z $datadir ]] && datadir=/data/srv/mysql
post_install(){
groupadd -g 89 mysql &>/dev/null
@@ -9,10 +9,11 @@ post_install(){
if [[ ! -e $datadir ]]; then
install -dm700 $datadir
- usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=$datadir
- chown -R mysql:mysql var/lib/mysql &>/dev/null
fi
+ usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=$datadir
+ chown -R mysql:mysql var/lib/mysql &>/dev/null
+
usr/bin/systemd-tmpfiles --create mysqld.conf
}