6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-16 18:15:09 +00:00

Root user is USERID=0, not 1000

This commit is contained in:
Régis Behmo 2018-05-03 07:06:03 +02:00
parent 7189ea90bf
commit 98ce9a8dac

View File

@ -1,9 +1,9 @@
#!/bin/bash -e
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
USERID=${USERID:=1000}
USERID=${USERID:=0}
## Configure user with a different USERID if requested.
if [ "$USERID" -ne 1000 ]
if [ "$USERID" -ne 0 ]
then
echo "creating new user 'openedx' with UID $USERID"
useradd --home-dir /openedx -u $USERID openedx