From: | Cédric Villemain <cedric(at)2ndQuadrant(dot)com> |
---|---|
To: | "pgsql-pkg-yum(at)postgresql(dot)org" <pgsql-pkg-yum(at)postgresql(dot)org> |
Subject: | pgbouncer install script create home dierctory - bug ? |
Date: | 2015-07-07 14:30:35 |
Message-ID: | 559BE28B.70106@2ndQuadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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
From | Date | Subject | |
---|---|---|---|
Next Message | jared | 2015-07-07 18:32:53 | Re: Fedora 22 |
Previous Message | Devrim GÜNDÜZ | 2015-07-05 15:18:51 | Re: Slony1-93 init script - updated |