Skip to content

Commit 3508d51

Browse files
author
xmik
committed
silence usermod in image scripts
1 parent 29ed93c commit 3508d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

image_scripts/src/etc_dojo.d/scripts/50-fix-uid-gid.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ else
7070
if [[ "${DOJO_LOG_LEVEL}" != "silent" ]] && [[ "${DOJO_LOG_LEVEL}" != "error" ]] && [[ "${DOJO_LOG_LEVEL}" != "warn" ]]; then
7171
set -x
7272
fi
73-
usermod -u "${newuid}" "${owner_username}" >&2
73+
74+
# silence the output of usermod, any errors should still be printed out
75+
usermod -u "${newuid}" "${owner_username}" > /dev/null
7476
groupmod -g "${newgid}" "${owner_groupname}" >&2
7577
chown ${newuid}:${newgid} -R "${dojo_home}" >&2
7678
if [[ "${DOJO_LOG_LEVEL}" != "silent" ]] && [[ "${DOJO_LOG_LEVEL}" != "error" ]] && [[ "${DOJO_LOG_LEVEL}" != "warn" ]]; then

0 commit comments

Comments
 (0)