Commit b4dd11e1 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #420 from minrk/fix-check-root

start.sh: fix check for if we are root
parents 608d828c 9e6b4a53
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
set -e set -e
# Handle special flags if we're root # Handle special flags if we're root
if [ $UID == 0 ] ; then if [ $(id -u) == 0 ] ; then
# Change UID of NB_USER to NB_UID if it does not match # Change UID of NB_USER to NB_UID if it does not match
if [ "$NB_UID" != $(id -u $NB_USER) ] ; then if [ "$NB_UID" != $(id -u $NB_USER) ] ; then
echo "Set user UID to: $NB_UID" echo "Set user UID to: $NB_UID"
......
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