From 2d9aa71f69f7a623b073769b43998ba0078246ce Mon Sep 17 00:00:00 2001 From: Brett Randall Date: Wed, 20 Mar 2019 10:43:58 +1100 Subject: [PATCH] Added logging of CHOWN_HOME_OPTS and CHOWN_EXTRA_OPTS. Signed-off-by: Brett Randall --- base-notebook/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base-notebook/start.sh b/base-notebook/start.sh index f9002110..1d30ca9e 100755 --- a/base-notebook/start.sh +++ b/base-notebook/start.sh @@ -50,12 +50,12 @@ if [ $(id -u) == 0 ] ; then # Handle case where provisioned storage does not have the correct permissions by default # Ex: default NFS/EFS (no auto-uid/gid) 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 with options '${CHOWN_HOME_OPTS}'" chown $CHOWN_HOME_OPTS $NB_UID:$NB_GID /home/$NB_USER fi if [ ! -z "$CHOWN_EXTRA" ]; then for extra_dir in $(echo $CHOWN_EXTRA | tr ',' ' '); do - echo "Changing ownership of ${extra_dir} to $NB_UID:$NB_GID" + echo "Changing ownership of ${extra_dir} to $NB_UID:$NB_GID with options '${CHOWN_EXTRA_OPTS}'" chown $CHOWN_EXTRA_OPTS $NB_UID:$NB_GID $extra_dir done fi