diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2017-10-20 15:09:45 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2017-10-24 09:52:54 +0200 |
commit | ee2296c94a6b84a85c52ee8e6c33ec69931bc3ff (patch) | |
tree | 39ddd561b26957c7ea73003b084cf50008442210 /Dockerfile | |
parent | 7df65cb00afac966aa964cb15abf95b486480590 (diff) |
Use correct lava-server command to create admin user
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |