public inbox for [email protected]
help / color / mirror / Atom feedFrom: Cédric Villemain <[email protected]>
To: [email protected] <[email protected]>
Subject: pgbouncer install script create home dierctory - bug ?
Date: Tue, 07 Jul 2015 16:30:35 +0200
Message-ID: <[email protected]> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>
I have been surprised by pgbouncer install creating a home directory as
shown below («useradd -m» is the interesting bit).
«-M» is used to prevent home directory creation. Is there a typo or an
expected behavior?
$ rpm -qp --scripts pgbouncer-1.5.4-3.rhel7.x86_64.rpm
warning: pgbouncer-1.5.4-3.rhel7.x86_64.rpm: Header V4 DSA/SHA1
Signature, key ID 442df0f8: NOKEY
preinstall scriptlet (using /bin/sh):
groupadd -r pgbouncer >/dev/null 2>&1 || :
useradd -m -g pgbouncer -r -s /bin/bash \
-c "PgBouncer Server" pgbouncer >/dev/null 2>&1 || :
touch /var/log/pgbouncer.log
chown pgbouncer:pgbouncer /var/log/pgbouncer.log
chmod 0700 /var/log/pgbouncer.log
postinstall scriptlet (using /bin/sh):
chkconfig --add pgbouncer
chown -R pgbouncer:pgbouncer /etc/pgbouncer
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ] ; then
/sbin/service pgbouncer condstop >/dev/null 2>&1
chkconfig --del pgbouncer
fi
postuninstall scriptlet (using /bin/sh):
if [ "$1" -ge "1" ] ; then
/sbin/service pgbouncer condrestart >/dev/null 2>&1 || :
fi
--
Cédric Villemain +33 (0)6 20 30 22 52
http://2ndQuadrant.fr/
PostgreSQL: Support 24x7 - Développement, Expertise et Formation
--
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: pgbouncer install script create home dierctory - bug ?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox