Change uid/gid for buxton 46/161346/1
authorInkyun Kil <inkyun.kil@samsung.com>
Thu, 23 Nov 2017 02:54:04 +0000 (11:54 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Thu, 23 Nov 2017 02:54:04 +0000 (11:54 +0900)
Change-Id: I3836b6da8ad5aea65c9e8524a6ab8821593ae864
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
packaging/buxton2.spec

index 1a3fd1e..b1bfa96 100755 (executable)
@@ -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