• Peter Parente's avatar
    Fix bug where container user is "nayvoj" · 9b9c3c7d
    Peter Parente authored
    whoami &> /dev/null || STATUS=$? && true
    causes STATUS to be set to an empty string
    when the container starts with option --add-group="root"
    resulting in both nayvoj and jovyan having uid=1000
    and gid=100. The first match in /etc/password wins
    and so the container user ends up being "nayvoj"
    accidentally.
    
    Avoid this by checking that whoami STATUS is neither blank nor 0
    before adding a new /etc/passwd entry
    9b9c3c7d
start.sh 5.39 KB