Skip to content

Commit

Permalink
add mandatory group id
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ruoss authored Oct 18, 2016
1 parent 9cf2da2 commit 03db705
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/ash

if [ -z "$USER_ID" ]; then
echo "USER_ID is required"
echo "USER_ID is required - you may use \$(id -u)"
exit 1
fi

if [ -z "$GROUP_ID" ]; then
echo "GROUP_ID is required - you may use \$(id -g)"
exit 1
fi

# something resets HOME => setting it again
exec su-exec $USER_ID env HOME=$HOMEDIR "$@"
exec su-exec $USER_ID:$GROUP_ID env HOME=$HOMEDIR "$@"

0 comments on commit 03db705

Please sign in to comment.