[Buildroot] [git commit] mysql: add mysql user

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jul 21 21:52:27 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=83cb67dde2daa1b51e84bb2473f5bda77282842b
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

[Thomas: do not define a password nor a shell, add a description for
the user.]

Signed-off-by: Marcelo Gutiérrez <kuyurix at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

merge user def
---
 package/mysql/mysql.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/mysql/mysql.mk b/package/mysql/mysql.mk
index 21435f5..44dcb7e 100644
--- a/package/mysql/mysql.mk
+++ b/package/mysql/mysql.mk
@@ -89,6 +89,10 @@ define HOST_MYSQL_INSTALL_CMDS
 	$(INSTALL) -m 0755  $(@D)/sql/gen_lex_hash  $(HOST_DIR)/usr/bin/
 endef
 
+define MYSQL_USERS
+	mysql -1 nogroup -1 * /var/mysql - - MySQL daemon
+endef
+
 define MYSQL_ADD_FOLDER
 	$(INSTALL) -d $(TARGET_DIR)/var/mysql
 endef


More information about the buildroot mailing list