summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2017-10-20 15:09:45 +0200
committerCorentin LABBE <clabbe@baylibre.com>2017-10-24 09:52:54 +0200
commitee2296c94a6b84a85c52ee8e6c33ec69931bc3ff (patch)
tree39ddd561b26957c7ea73003b084cf50008442210
parent7df65cb00afac966aa964cb15abf95b486480590 (diff)
Use correct lava-server command to create admin user
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 01b189d..942f1f6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -45,7 +45,7 @@ RUN service postgresql start \
# Create a admin user (Insecure note, this creates a default user, username: admin/admin)
RUN /start.sh \
- && echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@localhost.com', 'admin')" | lava-server manage shell \
+ && lava-server manage users add --passwd admin --staff --superuser --email admin@example.com admin \
&& /stop.sh
# Install latest