summaryrefslogtreecommitdiffstats
path: root/postgresql/post-install
blob: 27f3ad01518c685fb17b876bc39233f542478951 (plain)
1
2
3
4
5
getent group $newgroup > /dev/null || groupadd -g 88 postgres
getent passwd $newuser > /dev/null || useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data -u 88 -s /bin/bash postgres
install -v -m700 -d /srv/pgsql/data
chown -v -R postgres:postgres /srv/pgsql/data
chmod 700 /srv/pgsql/data