forked from ports/contrib
postgresql: added paths to pre-install script
This commit is contained in:
parent
84e467a492
commit
2bd033b931
@ -4,6 +4,6 @@ _USER=postgres
|
||||
_HOME=/var/pgsql/data
|
||||
_GROUP=postgres
|
||||
|
||||
getent group $_GROUP > /dev/null 2>&1 || groupadd $_GROUP
|
||||
getent passwd $_USER > /dev/null 2>&1 || useradd -c 'postgres system user' -g $_GROUP -d $_HOME -s /bin/false $_USER
|
||||
/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
|
||||
passwd -l $_USER > /dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user