wok-current diff postgresql/receipt @ rev 2627
wine: remove and fix bad dep
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 15 16:40:40 2009 +0200 (2009-04-15) |
parents | 79e6c7e5b6d3 |
children | 807ed3221739 |
line diff
1.1 --- a/postgresql/receipt Fri Mar 06 10:53:07 2009 +0000 1.2 +++ b/postgresql/receipt Wed Apr 15 16:40:40 2009 +0200 1.3 @@ -58,8 +58,10 @@ 1.4 echo -n "Adding user postgres..." 1.5 chroot $1/ adduser postgres -D -H -h /var/lib/pgsql 1.6 # ensure not to overload tux user 1.7 - sed -i 's/^postgres:x:1000:1000:/postgres:x:1001:1001:/' $1/etc/passwd 1.8 - sed -i 's/^postgres:x:1000:/postgres:x:1001:/' $1/etc/group 1.9 + i=1100 1.10 + while grep -q ":$i:" $1/etc/passwd ; do i=$(( $i + 1 )); done 1.11 + sed -i "s/^postgres:x:1000:1000:/postgres:x:$i:$i:/" $1/etc/passwd 1.12 + sed -i "s/^postgres:x:1000:/postgres:x:$i:/" $1/etc/group 1.13 status 1.14 fi 1.15 # addgroup postgres if needed