nfs-server-alpine icon indicating copy to clipboard operation
nfs-server-alpine copied to clipboard

Added chown and chmod support

Open hacor opened this issue 5 years ago • 3 comments

Hello

I'm not sure whether you're interested, but I provided a few new environment parameters in order to set the shared directory to the provided owner and provided file permissions.

  • Added UID:UID ownership changes to the shared_directory
  • Added DIRECTORY_PERMISSIONS to set the chown command on the shared_directory
  • Docs updated

If any changes requested, let me know!

Best regards,

Hacor

hacor avatar Nov 23 '18 11:11 hacor

Sorry I seem to have completely missed this, I'll take a closer look soon

sjiveson avatar Dec 16 '18 17:12 sjiveson

Finally got to this. I'd like to include it but I think the new if statements should come after the SHARED_DIRECTORY_2 block and the variable names should be consistent, say DIRECTORY_UID and DIRECTORY_PERMISSIONS? Perhaps maybe a dedicated variable and logic for the GID too?

Quite happy to make those changes in my own branch if you don't have the time or desire. Please let me know.

sjiveson avatar Feb 27 '19 13:02 sjiveson

Sorry for the extreme delay :-) I think all adaptations are made!

hacor avatar Aug 26 '19 07:08 hacor