aports/main/postgresql-bdr/postgresql-bdr.pre-install
Natanael Copa c467afc675 main/postgresql-bdr: create user from pre-install
postgres user was removed from alpine-baselayout in commit eed389c20a19,
(main/alpine-baselayout: remove postgres account), so we need create it
from pre-install scripts
2019-12-18 15:36:31 +00:00

11 lines
299 B
Bash

#!/bin/sh
# Fixed GID/UID values as this users was previously included in the
# default /etc/passwd as shipped by main/alpine-baselayout.
addgroup -g 70 -S postgres 2>/dev/null
adduser -u 70 -S -D -H -h /var/lib/postgresql -g "Postgres user" \
-s /bin/sh -G postgres postgres 2>/dev/null
exit 0