start.sh: add parens for CHOWN_HOME_OPTS

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
This commit is contained in:
Ben Mares
2021-11-10 00:56:34 +01:00
committed by GitHub
parent 87ad5ffdf6
commit 4c47de93e7

View File

@@ -115,7 +115,7 @@ if [ "$(id -u)" == 0 ] ; then
# Optionally ensure the desired user get filesystem ownership of it's home
# folder and/or additional folders
if [[ "${CHOWN_HOME}" == "1" || "${CHOWN_HOME}" == "yes" ]]; then
echo "Ensuring /home/${NB_USER} is owned by ${NB_UID}:${NB_GID} ${CHOWN_HOME_OPTS:+chown options: ${CHOWN_HOME_OPTS}}"
echo "Ensuring /home/${NB_USER} is owned by ${NB_UID}:${NB_GID} ${CHOWN_HOME_OPTS:+(chown options: ${CHOWN_HOME_OPTS})}"
# shellcheck disable=SC2086
chown ${CHOWN_HOME_OPTS} "${NB_UID}:${NB_GID}" "/home/${NB_USER}"
fi