wok-next rev 1425
postgresql: ensure not to overload tux user
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 28 18:45:59 2008 +0000 (2008-09-28) |
parents | f25290110550 |
children | 79d7b34e8525 |
files | postgresql/receipt |
line diff
1.1 --- a/postgresql/receipt Fri Sep 26 13:16:44 2008 +0000 1.2 +++ b/postgresql/receipt Sun Sep 28 18:45:59 2008 +0000 1.3 @@ -2,7 +2,7 @@ 1.4 1.5 PACKAGE="postgresql" 1.6 VERSION="8.3.3" 1.7 -CATEGORY="misc" 1.8 +CATEGORY="system" 1.9 SHORT_DESC="SQL database system." 1.10 MAINTAINER="pascal.bellard@slitaz.org" 1.11 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.12 @@ -55,6 +55,9 @@ 1.13 if ! grep -q postgres $1/etc/passwd; then 1.14 echo -n "Adding user postgres..." 1.15 chroot $1/ adduser postgres -D -H -h /var/lib/pgsql 1.16 + # ensure not to overload tux user 1.17 + sed -i 's/^postgres:x:1000:1000:/postgres:x:1001:1001:/' $1/etc/passwd 1.18 + sed -i 's/^postgres:x:1000:/postgres:x:1001:/' $1/etc/group 1.19 status 1.20 fi 1.21 # addgroup postgres if needed