colord: Add user creation in the doinst.sh as well.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-11-30 18:39:35 +07:00
parent 39c81adc8c
commit 2f63dff6bf
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 6 additions and 1 deletions

View file

@ -24,7 +24,7 @@
PRGNAM=colord
VERSION=${VERSION:-1.2.12}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_csb}
if [ -z "$ARCH" ]; then

View file

@ -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