Skip to content

Commit

Permalink
silence usermod in image scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
xmik committed Feb 5, 2024
1 parent 29ed93c commit 3508d51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image_scripts/src/etc_dojo.d/scripts/50-fix-uid-gid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ else
if [[ "${DOJO_LOG_LEVEL}" != "silent" ]] && [[ "${DOJO_LOG_LEVEL}" != "error" ]] && [[ "${DOJO_LOG_LEVEL}" != "warn" ]]; then
set -x
fi
usermod -u "${newuid}" "${owner_username}" >&2

# silence the output of usermod, any errors should still be printed out
usermod -u "${newuid}" "${owner_username}" > /dev/null
groupmod -g "${newgid}" "${owner_groupname}" >&2
chown ${newuid}:${newgid} -R "${dojo_home}" >&2
if [[ "${DOJO_LOG_LEVEL}" != "silent" ]] && [[ "${DOJO_LOG_LEVEL}" != "error" ]] && [[ "${DOJO_LOG_LEVEL}" != "warn" ]]; then
Expand Down

0 comments on commit 3508d51

Please sign in to comment.