wok-6.x rev 7962
Changed postgres user and group ids to 88 in postgresql receipt.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 16 13:38:29 2011 +0000 (2011-01-16) |
parents | 93342cc572ff |
children | f6df58d6487e |
files | postgresql/receipt |
line diff
1.1 --- a/postgresql/receipt Sun Jan 16 12:04:56 2011 +0000 1.2 +++ b/postgresql/receipt Sun Jan 16 13:38:29 2011 +0000 1.3 @@ -54,19 +54,14 @@ 1.4 # adduser postgres if needed 1.5 if ! grep -q postgres $1/etc/passwd; then 1.6 echo -n "Adding user postgres..." 1.7 - chroot $1/ adduser postgres -D -H -h /var/lib/pgsql 1.8 + chroot $1/ adduser postgres -D -H -u 88 -h /var/lib/pgsql 1.9 rm -f /var/lib/pgsql/.* /var/lib/pgsql/* 1.10 - # ensure not to overload tux user 1.11 - i=1100 1.12 - while grep -q ":$i:" $1/etc/passwd ; do i=$(( $i + 1 )); done 1.13 - sed -i "s/^postgres:x:1000:1000:/postgres:x:$i:$i:/" $1/etc/passwd 1.14 - sed -i "s/^postgres:x:1000:/postgres:x:$i:/" $1/etc/group 1.15 status 1.16 fi 1.17 # addgroup postgres if needed 1.18 if ! grep -q postgres $1/etc/group; then 1.19 echo -n "Adding group postgres..." 1.20 - chroot $1/ sh -c 'addgroup postgres && addgroup postgres postgres' 1.21 + chroot $1/ sh -c 'addgroup -g 88 postgres && addgroup postgres postgres' 1.22 status 1.23 fi 1.24 chroot $1/ chown -R postgres.postgres /var/lib/pgsql /var/log/postgresql