Patchwork [meta-oe] mariadb: change the group of /var/lib/mysql from 'nogroup' to 'mysql'.

login
register
mail settings
Submitter Hongxu Jia
Date Aug. 22, 2014, 1:25 a.m.
Message ID <1408670701-9201-1-git-send-email-hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/78781/
State Accepted, archived
Headers show

Comments

Hongxu Jia - Aug. 22, 2014, 1:25 a.m.
The commit 8f637f9bbcdda1dc7a1998d243708c727aa6016f added
mysql group, we should change the group of /var/lib/mysql
from 'nogroup' to 'mysql' also.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-oe/recipes-support/mysql/mariadb_5.5.38.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-support/mysql/mariadb_5.5.38.inc b/meta-oe/recipes-support/mysql/mariadb_5.5.38.inc
index 8a73833..06c7aba 100644
--- a/meta-oe/recipes-support/mysql/mariadb_5.5.38.inc
+++ b/meta-oe/recipes-support/mysql/mariadb_5.5.38.inc
@@ -123,7 +123,7 @@  pkg_postinst_${PN}-server () {
     test -d /usr/bin || mkdir -p /usr/bin
     test -e /usr/bin/hostname || ln -s /bin/hostname /usr/bin/hostname
     mkdir /var/lib/mysql
-    chown mysql.nogroup /var/lib/mysql
+    chown mysql.mysql /var/lib/mysql
 
     mysql_install_db --basedir=${prefix} --user=mysql