Closed pwatk closed 4 years ago
Looks pretty straight forward to me. I'll give it a shot as soon as I can. Thank you in advance. :)
I only use one domain so when I said all files I meant cert.pem and key.pem. The command looks for any .pem files in the output directory though.
The issue I had was only cert.pem was having it’s ownership changed.
Given that cert.pem comes alphabetically before key.pem I deduced that the find command was stopping after the first file it encountered.
Adding a while loop to the find command fixed this for me.
Sorry I miss read your question.
I added chmod g+r
to the find command so the group permission is changed to read at the same time as the files ownership.
Ultimately this means that key.pem allows read access to the $OVERRIDE_GID
group as well as cert.pem.
Sorry I miss read your question.
I added
chmod g+r
to the find command so the group permission is changed to read at the same time as the files ownership.Ultimately this means that key.pem allows read access to the
$OVERRIDE_GID
group as well as cert.pem.I only use one domain so when I said all files I meant cert.pem and key.pem. The command looks for any .pem files in the output directory though.
The issue I had was only cert.pem was having it’s ownership changed.
Given that cert.pem comes alphabetically before key.pem I deduced that the find command was stopping after the first file it encountered.
Adding a while loop to the find command fixed this for me.
Ah, yeah. Makes sense now. 👍 Well, as mentioned above, everything seemed to work fine. I'm merging the changes now and I'll create a new release later on. Thank you for your contribution. :)
Thank you.
I'm submitting these three commits for review.