Bug#858163: unblock: gitlab/8.13.11+dfsg-6
Hi,
> You probably want something like:
>
> """
> if su ${gitlab_user} -c 'psql gitlab_production -c ""'; then
> su postgres -c "dropdb gitlab_production"
> fi
> """
I believe maintainer scripts (and various other parts) should use
`runuser` instead of `su`. It does not open PAM sessions which seems
to sometimes cause problems.
`/sbin/runuser` is already available in Jessie, so there should be no
issues with using it.
(Maybe one should add something to Policy about `runuser`?)
Ansgar
Reply to: