package/redis: Add redis system user
authorMartin Bark <martin@barkynet.com>
Thu, 23 Jul 2015 11:20:26 +0000 (12:20 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 23 Jul 2015 21:15:24 +0000 (23:15 +0200)
Add a redis system user and set the home directory to /var/lib/redis

Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/redis/redis.mk

index 51c1f9c0778092753f55a72b76d5f2677c6f8586..0135cf991ff9711b9e35085b03a7585a395d0db0 100644 (file)
@@ -9,6 +9,10 @@ REDIS_SITE = http://download.redis.io/releases
 REDIS_LICENSE = BSD-3c (core); MIT and BSD family licenses (Bundled components)
 REDIS_LICENSE_FILES = COPYING
 
+define REDIS_USERS
+       redis -1 redis -1 * /var/lib/redis /bin/false - Redis Server
+endef
+
 # Redis doesn't support DESTDIR (yet, see
 # https://github.com/antirez/redis/pull/609).  We set PREFIX
 # instead.