summaryrefslogtreecommitdiffstats
path: root/abs/core/mysql/mysql.install
diff options
context:
space:
mode:
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
}