-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Ruoss
authored
Oct 18, 2016
1 parent
9cf2da2
commit 03db705
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |