Commit 40506ed9 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #784 from parente/fix-nayvoj

Fix bug where container user is "nayvoj"
parents b8f94456 e2d4d3b4
...@@ -109,7 +109,7 @@ else ...@@ -109,7 +109,7 @@ else
# variables, but they could still have overridden the uid/gid that # variables, but they could still have overridden the uid/gid that
# container runs as. Check that the user has an entry in the passwd # container runs as. Check that the user has an entry in the passwd
# file and if not add an entry. # file and if not add an entry.
whoami &> /dev/null || STATUS=$? && true STATUS=0 && whoami &> /dev/null || STATUS=$? && true
if [[ "$STATUS" != "0" ]]; then if [[ "$STATUS" != "0" ]]; then
if [[ -w /etc/passwd ]]; then if [[ -w /etc/passwd ]]; then
echo "Adding passwd file entry for $(id -u)" echo "Adding passwd file entry for $(id -u)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment