goofball222 / unifi

UniFi Docker Container
Apache License 2.0
251 stars 38 forks source link

f_chown() should not run if group has access #105

Closed Elegant996 closed 1 year ago

Elegant996 commented 2 years ago

When deploying this image as a pod in kubernetes, some CSI drivers create the mount with permissions root:PGID. All files within the mount are correctly set to PUID:PGID but since the mounting point UID is not of the PUID, the entrypoint script believes all files within do not have proper permissions. Could we add a check to see if the PGID is correct and not force the chown based solely on the PUID?

Thanks!

Elegant996 commented 1 year ago

Can override by specifying RUNAS_UID0=true even when running as non-root. Thanks!