| From: | Devrim Gündüz <devrim(at)gunduz(dot)org> |
|---|---|
| To: | Alexander Lakhin <exclusion(at)gmail(dot)com>, pgsql-pkg-yum(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Invalid 'runuser' usage |
| Date: | 2020-03-11 01:28:38 |
| Message-ID: | e211ce7dc3d168cee6946f5c21f0d892adece19b.camel@gunduz.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-pkg-yum |
Hi,
On Mon, 2020-03-02 at 10:30 +0300, Alexander Lakhin wrote:
> When trying to perform `setup initdb` on Centos 8 with an user-defined
> PATH I get the following error:
>
> [test(at)localhost ~]$ echo $PATH
> /home/test/.local/bin:/home/test/bin:/usr/local/bin:/usr/bin
>
> [test(at)localhost ~]$ sudo --preserve-env=PATH
> /usr/pgsql-12/bin/postgresql-12-setup initdb
> Initializing database ... failed, see /var/lib/pgsql/12/initdb.log
>
> [test(at)localhost ~]$ sudo cat /var/lib/pgsql/12/initdb.log
> /usr/pgsql-12/bin/postgresql-12-setup: line 143: runuser: command not found
>
> Shouldn't the runuser be specified with the full path here?:
> if [ -x /sbin/runuser ]
> then
> SU=runuser
I never aimed (and tested) this script to work with non-root user. Good point.
Will fix in next minor release.
Regards,
--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Devrim Gündüz | 2020-03-11 01:31:18 | Re: PgAdmin4 installation fails for RHEL 7.7 |
| Previous Message | Devrim Gündüz | 2020-03-11 01:25:12 | Re: pg_partman 4.3 |