From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
Cc: | "Daniel Westermann (DWE)" <daniel(dot)westermann(at)dbi-services(dot)com>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Fir mkdir command in "Short Version" for installing from source |
Date: | 2022-03-14 14:01:32 |
Message-ID: | 172346.1647266492@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Daniel Gustafsson <daniel(at)yesql(dot)se> writes:
> On 13 Mar 2022, at 17:05, Daniel Westermann (DWE) <daniel(dot)westermann(at)dbi-services(dot)com> wrote:
>> Is it worth fixing that with "mkdir -p ..."?
> Well, it will fail unless the user already had /usr/local/pgsql/, but I hear
> what you're saying. Though I bet almost anyone following this will be able to
> figure it out but there is little to no value in not being correct.
I think that at the time that was written, mkdir didn't universally
have a "-p" option. But POSIX has required that for a very long
time, so it's probably safe to assume it now.
A larger issue is that blind "mkdir -p" may not produce the ownerships
and permissions you want for the parent directories. That's not a
topic to get into in a one-line summary, though.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2022-03-14 14:28:47 | Re: Fir mkdir command in "Short Version" for installing from source |
Previous Message | Daniel Gustafsson | 2022-03-14 09:08:05 | Re: Fir mkdir command in "Short Version" for installing from source |