#!/bin/bash
#

useradd postgres && autopasswd postgres postgres postgres
mkdir /home/pgdata && chown postgres:users /home/pgdata
sudo -u postgres /usr/bin/initdb -D /home/pgdata
exit
