summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorInkyun Kil <inkyun.kil@samsung.com>2017-11-23 11:54:04 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2017-11-23 11:54:04 +0900
commit5d041a574bc95873620749264937788bfe7c92c4 (patch)
tree7aed49dd0d552760dcdb9255367fe11451584461 /packaging
parent5a38b816a8a25cae0a4bf5283296a80f4951c4c0 (diff)
downloadbuxton2-5d041a574bc95873620749264937788bfe7c92c4.tar.gz
buxton2-5d041a574bc95873620749264937788bfe7c92c4.tar.bz2
buxton2-5d041a574bc95873620749264937788bfe7c92c4.zip
Change uid/gid for buxton
Change-Id: I3836b6da8ad5aea65c9e8524a6ab8821593ae864 Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/buxton2.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/buxton2.spec b/packaging/buxton2.spec
index 1a3fd1e..b1bfa96 100755
--- a/packaging/buxton2.spec
+++ b/packaging/buxton2.spec
@@ -148,8 +148,9 @@ cp -f scripts/299.buxton2_upgrade.sh %{buildroot}%{upgrade_script_path}
# buxtond runs as user buxton of group buxton
# create it on need!
-getent group buxton > /dev/null || groupadd -r buxton
-getent passwd buxton > /dev/null || useradd -r -g buxton -d "%{dbdir}" buxton
+getent group buxton > /dev/null || groupadd -r -g 375 buxton 2> /dev/null
+getent passwd buxton > /dev/null || useradd -c "buxton" -u 375 -g 375 \
+ -s /sbin/nologin -r -d /var/lib/empty buxton 2> /dev/null
# The initial DBs will not have the correct labels and
# permissions when created in postinstall during image