🔒 Repository is read-only – file editing is disabled.
1234567891011
INFO="\033[1;36m"
NORMAL="\033[0;39m"
if ! (getent group postgres > /dev/null); then
printf "${INFO}Creating postgres group${NORMAL}\n"
groupadd -g 41 postgres
fi
if ! (getent passwd postgres > /dev/null); then
printf "${INFO}Creating postgres user${NORMAL}\n"
useradd -c 'PostgreSQL Server' -d /srv/pgsql/data \
-g postgres -u 41 postgres
fi