7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-28 20:00:49 +00:00

Rename "create-staff-user" command to "staff-user"

This commit is contained in:
Régis Behmo 2019-01-07 08:12:37 +01:00
parent 3433a7c046
commit f38f153c56
3 changed files with 3 additions and 3 deletions

View File

@ -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}")

View File

@ -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

View File

@ -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.