diff --git a/deploy/k8s/Makefile b/deploy/k8s/Makefile index 256986a..0f1d572 100644 --- a/deploy/k8s/Makefile +++ b/deploy/k8s/Makefile @@ -89,7 +89,7 @@ import-demo-course: ## Import the demo course from edX git clone https://github.com/edx/edx-demo-course --branch open-release/hawthorn.2 --depth 1 ../edx-demo-course \ && python ./manage.py cms import ../data ../edx-demo-course") -create-staff-user: ## Create a user with admin rights: make create-staff-user USERNAME=... EMAIL=... +staff-user: ## Create a user with admin rights: make staff-user USERNAME=... EMAIL=... $(call podexec,lms,/bin/bash -c "\ ./manage.py lms manage_user --superuser --staff ${USERNAME} ${EMAIL} \ && ./manage.py lms changepassword ${USERNAME}") diff --git a/deploy/local/Makefile b/deploy/local/Makefile index 5af1246..b32c683 100644 --- a/deploy/local/Makefile +++ b/deploy/local/Makefile @@ -165,7 +165,7 @@ import-demo-course: ## Import the demo course from edX git clone https://github.com/edx/edx-demo-course --branch open-release/hawthorn.2 --depth 1 ../edx-demo-course \ && python ./manage.py cms import ../data ../edx-demo-course" -create-staff-user: ## Create a user with admin rights: make create-staff-user USERNAME=... EMAIL=... +staff-user: ## Create a user with admin rights: make staff-user USERNAME=... EMAIL=... $(DOCKER_COMPOSE_RUN_OPENEDX) lms /bin/bash -c "./manage.py lms manage_user --superuser --staff ${USERNAME} ${EMAIL} && ./manage.py lms changepassword ${USERNAME}" portainer: ## Run Portainer (https://portainer.io), a UI for container supervision diff --git a/docs/local.rst b/docs/local.rst index 434df4a..4f770d9 100644 --- a/docs/local.rst +++ b/docs/local.rst @@ -76,7 +76,7 @@ Creating a new user with staff and admin rights You will most certainly need to create a user to administer the platform. Just run:: - make create-staff-user USERNAME=yourusername EMAIL=user@email.com + make staff-user USERNAME=yourusername EMAIL=user@email.com You will asked to set the user password interactively.