Fixes the issue where sometimes the add-users script would not work because it would error out and exit before chown or chmod all the files it was supposed to.
One case I found for this is when a users home directory had no files the xargs command would fail.
Changes that happened:
Clean up the Dockerfile a little bit, and update README
Fix find and xargs commands in add-users script
add -r to xargs to not process empty arguments passed to it (when no files in users home directory)
add -mindepth option to find to only look at files/folders in the users home directory
fix typo in Directory permissions variable
Added changes discussed in comments in 969e2f5bba2379a39fe901591d0e9b11f4272dc7
Fixes the issue where sometimes the add-users script would not work because it would error out and exit before
chown
orchmod
all the files it was supposed to.One case I found for this is when a users home directory had no files the
xargs
command would fail.Changes that happened:
find
andxargs
commands in add-users scriptxargs
to not process empty arguments passed to it (when no files in users home directory)find
to only look at files/folders in the users home directory