doc: add comments in entrypoint
This commit is contained in:
parent
7cce63b660
commit
12e09be6df
1 changed files with 2 additions and 1 deletions
|
@ -9,10 +9,12 @@ echo "Arguments: $ARGS"
|
|||
EXT_UID=${EXT_UID:-999}
|
||||
EXT_GID=${EXT_GID:-999}
|
||||
|
||||
# Create user with given ID if needed
|
||||
if ! grep -q "^[^:]*:[^:]*:$EXT_UID:" /etc/group ; then
|
||||
groupadd -g "$EXT_GID" appuser
|
||||
fi
|
||||
|
||||
# Create group with given ID if needed
|
||||
if ! grep -q "^[^:]*:[^:]*:$EXT_UID:" /etc/passwd ; then
|
||||
useradd -r -u "$EXT_UID" -g appuser appuser
|
||||
fi
|
||||
|
@ -27,4 +29,3 @@ if [ "$1" = "shell" ]; then
|
|||
else
|
||||
exec gosu "$EXT_UID:$EXT_GID" make "$@"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue