Skip to content

Commit

Permalink
redirect stdout to stderr from image scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
xmik committed Feb 5, 2024
1 parent b072f52 commit aba2906
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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,8 +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}"; groupmod -g "${newgid}" "${owner_groupname}"; )
( chown ${newuid}:${newgid} -R "${dojo_home}"; )
usermod -u "${newuid}" "${owner_username}" >&2
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
set +x
fi
Expand Down

0 comments on commit aba2906

Please sign in to comment.