Skip to content

Commit

Permalink
Not setting GID because it breaks if group does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
David Numan committed May 3, 2018
1 parent 0d359da commit c392a58
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
@@ -1,8 +1,8 @@
#!/bin/bash -e

# To avoid file permission conflicts change the "node" user to the UID/GID of
# To avoid file permission conflicts change the "node" user to the UID of
# the owner of the working directory and run the command as the "node" user.
usermod -o -u $(stat -c '%u' .) -g $(stat -c '%g' .) -s /bin/bash -d /home/node/app node
usermod -o -u $(stat -c '%u' .) -s /bin/bash -d /home/node/app node

# To ensure the node path is maintained and quoting arbitrary strings,
# run the user command via a temporary script.
Expand Down

0 comments on commit c392a58

Please sign in to comment.