change-enrollment-course.sh 474 Bytes
Newer Older
1 2 3 4
cd configuration
pip install -r requirements.txt
env

Edward Zarecor committed
5
ansible="ansible first_in_tag_Name_${environment}-${deployment}-worker -i playbooks/ec2.py -u ubuntu -s -U www-data -m shell -a"
Edward Zarecor committed
6
manage="cd /edx/app/edxapp/edx-platform && /edx/bin/python.edxapp /edx/bin/manage.edxapp lms change_enrollment --settings aws"
7 8 9 10 11 12

if [ "$noop" = true ]; then
  $ansible "$manage --noop --course $course --to $to --from $from"
else
  $ansible "$manage --course $course --to $to --from $from"
fi