Commit 36d2850a authored by Martin Pitt's avatar Martin Pitt

create user postgres with sensible shell (#320810)

parent b432794e
......@@ -5,8 +5,10 @@ postgresql-common (24) unstable; urgency=low
is enabled on any disk containing PostgreSQL clusters.
* debian/postgresql-common.postinst: Call pg_checksystem. Closes: #318928
* Bump Standards-Version to 3.6.2.
* debian/postgresql-common.postinst: Setup user 'postgres' with /bin/bash as
default shell. Closes: #320810
-- Martin Pitt <mpitt@debian.org> Thu, 28 Jul 2005 13:44:42 +0200
-- Martin Pitt <mpitt@debian.org> Mon, 1 Aug 2005 18:50:03 +0200
postgresql-common (23) unstable; urgency=low
......
......@@ -33,7 +33,8 @@ EOF
if [ "$1" = configure ]; then
# Make sure the administrative user exists
if ! getent passwd postgres > /dev/null; then
adduser --system --quiet --no-create-home --home /var/lib/postgresql --group --gecos "PostgreSQL administrator" postgres
adduser --system --quiet --no-create-home --home /var/lib/postgresql \
--shell /bin/bash --group --gecos "PostgreSQL administrator" postgres
fi
# create socket directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment