wok diff postgresql/receipt @ rev 2594
Up: xterm (2.4.3) [security update]
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 09 19:51:20 2009 +0200 (2009-04-09) |
parents | 79e6c7e5b6d3 |
children | 807ed3221739 |
line diff
1.1 --- a/postgresql/receipt Fri Mar 06 10:53:07 2009 +0000 1.2 +++ b/postgresql/receipt Thu Apr 09 19:51:20 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