Commit 3c61b079 authored by Joachim Jablon's avatar Joachim Jablon Committed by GitHub

Chown of home dir needs to be recursive

parent 92fe05d1
...@@ -22,7 +22,7 @@ if [ $(id -u) == 0 ] ; then ...@@ -22,7 +22,7 @@ if [ $(id -u) == 0 ] ; then
# Ex: default NFS/EFS (no auto-uid/gid) # Ex: default NFS/EFS (no auto-uid/gid)
if [[ "$CHOWN_HOME" == "1" || "$CHOWN_HOME" == 'yes' ]]; then if [[ "$CHOWN_HOME" == "1" || "$CHOWN_HOME" == 'yes' ]]; then
echo "Changing ownership of /home/$NB_USER to $NB_UID:$NB_GID" echo "Changing ownership of /home/$NB_USER to $NB_UID:$NB_GID"
chown $NB_UID:$NB_GID /home/$NB_USER chown -R $NB_UID:$NB_GID /home/$NB_USER
fi fi
# handle home and working directory if the username changed # handle home and working directory if the username changed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment