diff options
author | Roy Li <rongqing.li@windriver.com> | 2015-02-06 13:59:46 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-02-12 19:35:39 +0100 |
commit | 9bb362cb3fdf3c28c6bb1f510fd303b5297c218f (patch) | |
tree | 9d8ea038e3e1bd517a7a747e3dee6964791e5101 /meta-oe/recipes-support/mysql/mariadb.inc | |
parent | f83d255736a43bbd2bdef702c5aa08936b8343c6 (diff) | |
download | meta-openembedded-9bb362cb3fdf3c28c6bb1f510fd303b5297c218f.tar.gz |
mariadb: make it be able to work with SELinux
1. change the datadir from /var/mysql to /var/lib/mysql
2. after creating datedir, restorecon on it, make SELinux be able to
work
3. Add the PIDFile for systemd unit file, otherwise systemctl can not
stop mysqld
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mysql/mariadb.inc')
-rw-r--r-- | meta-oe/recipes-support/mysql/mariadb.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mysql/mariadb.inc b/meta-oe/recipes-support/mysql/mariadb.inc index 80688623f..f385bfcda 100644 --- a/meta-oe/recipes-support/mysql/mariadb.inc +++ b/meta-oe/recipes-support/mysql/mariadb.inc | |||
@@ -128,6 +128,7 @@ pkg_postinst_${PN}-server () { | |||
128 | 128 | ||
129 | mysql_install_db --basedir=${prefix} --user=mysql | 129 | mysql_install_db --basedir=${prefix} --user=mysql |
130 | 130 | ||
131 | [ -x /sbin/restorecon ] && /sbin/restorecon -RF /var/lib/mysql | ||
131 | } | 132 | } |
132 | 133 | ||
133 | PACKAGES = "${PN}-dbg ${PN} \ | 134 | PACKAGES = "${PN}-dbg ${PN} \ |