-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Experimental] Add ability to change UID / GID for www-data and pihole user. #982
Conversation
Thank you for taking the time to submit this - I will try to look it over as soon as I can. One thing to note, please sign off your commit per the instructions here : https://github.com/pi-hole/docker-pi-hole/pull/982/checks?check_run_id=4800034886 Thanks! |
When mounting volumes, specific rights may be needed to write on mounted volumes on the host. Signed-off-by: edgd1er <[email protected]>
Signed-off-by: edgd1er <[email protected]>
Confirmed doing exactly what it says on the tin. Just playing with the output a bit and then I'll merge to |
Of course, I spoke to soon. The script is exiting with error 125 on a fresh container.... investigating |
Arf, that's unfortunate. Do you have a way to reproduce ? What I've done is:
|
seemingly just On a
|
the find command may need to be completed to ignore /dev /sys /srv, if that's the problem...
|
I'm looking at making a few tweaks, including removing the find command from this file. Firstly - there is already a section of |
Scratch that:
|
…run` script. remove pihole-FTL test from test-config because nothing exists until it has started for the first time. Signed-off-by: Adam Warner <[email protected]>
…erlay#329 Signed-off-by: Adam Warner <[email protected]>
@edgd1er - apologies for stepping on your PR - we can roll back commits and I'll do them separately if you'd prefer - I mostly wanted to tweak a few things after some extended testing and figured it makes sense to wrap them into the same PR as they're related |
No hard feelings. Let s keep it simple, same subject, same pr. I ll rebase the forked project when merged. |
@PromoFaux , v3 of s6-overlay has been released. Changelog says it is a complete rewrite and could fix many problems especially the fix-attrs. |
It is certainly worth a look to see! I actually had to go back on my thought about moving some of the permission setting things to the fix-attrs.d, because it runs before cont-init.d, it could be that some of the files don't actually exist yet. Also from the readme:
Edit: Looks like quite a few changes to S^, so probably worth looking at in another PR |
Signed-off-by: Adam Warner <[email protected]>
Signed-off-by: Adam Warner <[email protected]>
thanks for merging. S--overlay has a new installation process that need to be elaborated and tested:
|
When mounting volumes, specific rights may be needed to write on mounted volumes on the host.
Description
05-changer-uid-gid.sh added to cont-init .d ( s6 container initialisation). based on env vars if set, www-data UID / GID and pihole UID and GID are changed. Files owned by these two users are chowned to be sure
Motivation and Context
as per #328 and personnal need, I had to be able to write on host's mounted volumes.
In order to be able to write on mounted volumes, pihole and www-data user have to be mapped to an existing/known user on host system.
#328
How Has This Been Tested?
I can now update blacklist/whitelist db, gravity db, ....
env vars set:
system uid/gid
just added a script in :
Types of changes
Checklist: