[Pkg-roundcube-maintainers] Roundcube over Postgres on Debian 11.
Guilhem Moulin
guilhem at debian.org
Tue Mar 8 01:04:57 GMT 2022
On Mon, 07 Mar 2022 at 14:17:10 -0800, Kaz Kylheku wrote:
> I installed the package roundcube-pgsql. That didn't install postgres as a
> dependency,
That's intentional, since some prefer remote database engines. The
package has ‘Suggests: postgresql’ though.
> So far I had to do things like:
>
> - Add /sbin to PATH: otherwise the package configuration wasn't able to
> execute runuser.
That's suspicious, don't you unpack/configure as root? Anyway per
Debian Policy §6.1 we don't have to add /sbin to the maintainer script.
> runuser: options --{shell,fast,command,session-command,login} and --user
> are mutually exclusive .
Which Roundcube version? Did you edit the postinst script? Roundcube
1.4.13+dfsg.1-1~deb11u1 from Debian 11 doesn't use runuser(8) in
maintainer scripts. As of debian/1.5.1+dfsg-1 from Debian sid the only
place where we use runuser(8) is as follows
${user:+runuser -u"$user" --} env DEBIAN_PKG=1 \
php /usr/share/roundcube/bin/update.sh --version="$OLD_UPSTREAM_VERSION" --accept=true
and I don't see any conflict between runuser(8) options. You may want
to ‘set -x’ that postinst to see what the above expands to. Normally it
should be something like `runuser -uwww-data -- echo test` — does that
work for you?
--
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-roundcube-maintainers/attachments/20220308/4164da11/attachment.sig>
More information about the Pkg-roundcube-maintainers
mailing list