Skip to content

Commit

Permalink
Created IDA users as superusers to avoid permissions issues
Browse files Browse the repository at this point in the history
We don't have a simple way of managing groups at the moment. This is the next best alternative as managing groups/permissions is a bit beyond the scope of the current task.

LEARNER-1375
  • Loading branch information
clintonb committed Jun 9, 2017
1 parent 9b3b738 commit b33511c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provision-ida-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name=$1
port=$2

echo -e "${GREEN}Creating service user and OAuth client for ${name}...${NC}"
docker exec -t edx.devstack.lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker manage_user $1_worker [email protected] --staff' -- "$name"
docker exec -t edx.devstack.lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker manage_user $1_worker [email protected] --staff --superuser' -- "$name"
docker exec -t edx.devstack.lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker create_oauth2_client "http://localhost:$2" "http://localhost:$2/complete/edx-oidc/" confidential --client_name $1 --client_id "$1-key" --client_secret "$1-secret" --trusted --logout_uri "http://localhost:$2/logout/" --username $1_worker' -- "$name" "$port"

0 comments on commit b33511c

Please sign in to comment.