Skip to content

Commit

Permalink
do not start bash as login shell
Browse files Browse the repository at this point in the history
  • Loading branch information
pfichtner committed Jan 7, 2023
1 parent 2d3fe7b commit a78a38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ fi

DEFAULT_SHELL=`getent passwd $BUILD_USER | cut -f 7 -d':'`
if [ `id -u` -eq 0 ]; then
[ "$#" -gt 0 ] && exec gosu "$BUILD_USER" "$@" || exec gosu "$BUILD_USER" "$DEFAULT_SHELL" -l
[ "$#" -gt 0 ] && exec gosu "$BUILD_USER" "$@" || exec gosu "$BUILD_USER" "$DEFAULT_SHELL"
else
[ "$#" -gt 0 ] && exec "$@" || exec "$DEFAULT_SHELL" -l
[ "$#" -gt 0 ] && exec "$@" || exec "$DEFAULT_SHELL"
fi

0 comments on commit a78a38b

Please sign in to comment.