2015-12-19 15:23:34 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-11-11 17:42:11 +01:00
|
|
|
_USER=postgres
|
|
|
|
_HOME=/var/pgsql/data
|
|
|
|
_GROUP=postgres
|
2015-12-19 15:23:34 +01:00
|
|
|
|
2022-01-03 12:12:02 +01:00
|
|
|
/usr/bin/getent group $_GROUP > /dev/null 2>&1 || /usr/sbin/groupadd $_GROUP
|
|
|
|
/usr/bin/getent passwd $_USER > /dev/null 2>&1 || /usr/sbin/useradd -c 'postgres system user' -g $_GROUP -d $_HOME -s /bin/false $_USER
|
2021-11-11 17:42:11 +01:00
|
|
|
passwd -l $_USER > /dev/null
|