Skip to content

Commit

Permalink
fix: suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhardy committed Mar 31, 2020
1 parent fc3e400 commit 8199a28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ USER_NAME=${USER_NAME:-wineuser}
USER_UID=${USER_UID:-1010}
USER_GID=${USER_GID:-"${USER_UID}"}
USER_HOME=${USER_HOME:-/home/"${USER_NAME}"}
USER_PASSWD=${USER_PASSWD:-$(openssl passwd "${USER_NAME}")}
USER_PASSWD=${USER_PASSWD:-$(openssl passwd "${USER_NAME}" 2>/dev/null)}
RDP_SERVER=${RDP_SERVER:-no}
RUN_AS_ROOT=${RUN_AS_ROOT:-no}

echo "USER HOME: $USER_HOME"

# Create the user account
groupadd --gid "${USER_GID}" "${USER_NAME}"
! grep -q ":${USER_GID}:$" /etc/group && groupadd --gid "${USER_GID}" "${USER_NAME}"
useradd --shell /bin/bash --uid "${USER_UID}" --gid "${USER_GID}" --password "${USER_PASSWD}" --no-create-home --home-dir "${USER_HOME}" "${USER_NAME}"

# Create the user's home if it doesn't exist
Expand Down

0 comments on commit 8199a28

Please sign in to comment.