Skip to content

Commit

Permalink
fix empty env
Browse files Browse the repository at this point in the history
  • Loading branch information
khizunov committed Feb 18, 2024
1 parent d1559e1 commit 84db5a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions skipper/data/skipper-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ if ! [ -z "${SKIPPER_DOCKER_GID}" ];then
usermod -G root ${SKIPPER_USERNAME}
fi

if [ ${SKIPPER_USE_SUDO} == "true" ]; then
usermod -aG sudo ${SKIPPER_USERNAME}
sudo -sE -u ${SKIPPER_USERNAME} $@
if [ "$SKIPPER_USE_SUDO" == "true" ]; then
sudo -sE -u ${SKIPPER_USERNAME} "$@"
else
su -m ${SKIPPER_USERNAME} -c "$@"
fi
Expand Down

0 comments on commit 84db5a8

Please sign in to comment.