From 2f63dff6bf6143846ac2c24cd12d0aaa2dbc4fae Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Wed, 30 Nov 2016 18:39:35 +0700 Subject: [PATCH] colord: Add user creation in the doinst.sh as well. Signed-off-by: Willy Sudiarto Raharjo --- colord/colord.SlackBuild | 2 +- colord/doinst.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/colord/colord.SlackBuild b/colord/colord.SlackBuild index d8f431a..e47bc09 100644 --- a/colord/colord.SlackBuild +++ b/colord/colord.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=colord VERSION=${VERSION:-1.2.12} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_csb} if [ -z "$ARCH" ]; then diff --git a/colord/doinst.sh b/colord/doinst.sh index 0b49a37..31a9a7f 100644 --- a/colord/doinst.sh +++ b/colord/doinst.sh @@ -18,3 +18,8 @@ if [ -e usr/share/glib-2.0/schemas ]; then /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 fi fi + +if ! grep -q ^colord: /etc/group ; then + groupadd -g 303 colord + useradd -d /var/lib/colord -u 303 -g colord -s /bin/false colord +fi