mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-12 17:51:11 +00:00
Root user is USERID=0, not 1000
This commit is contained in:
parent
7189ea90bf
commit
98ce9a8dac
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
|
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
|
||||||
USERID=${USERID:=1000}
|
USERID=${USERID:=0}
|
||||||
|
|
||||||
## Configure user with a different USERID if requested.
|
## Configure user with a different USERID if requested.
|
||||||
if [ "$USERID" -ne 1000 ]
|
if [ "$USERID" -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "creating new user 'openedx' with UID $USERID"
|
echo "creating new user 'openedx' with UID $USERID"
|
||||||
useradd --home-dir /openedx -u $USERID openedx
|
useradd --home-dir /openedx -u $USERID openedx
|
||||||
|
Loading…
Reference in New Issue
Block a user