Commit 9e6b4a53 authored by Min RK's avatar Min RK

start.sh: fix check for if we are root

UID env is not set when launching as root, use `id -u` check instead
parent 608d828c
...@@ -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