Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2. # change directory to edx-platform
  3. cd /edx/app/edxapp/edx-platform
  4.  
  5. # prompt user, and read command line argument
  6. read -p 'Enter course ID: ' idcourse
  7. read -p "Rizky, Are you sure you want to generate the certificate (Y/N)? " answer
  8.  
  9. # handle the command line argument we were given
  10. while true
  11. do
  12. case $answer in
  13. [yY]* ) echo "Okay Rizky, Start generating $idcourse "
  14. sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws ungenerated_certs -c $idcourse --insecure
  15. break;;
  16.  
  17.  
  18. [nN]* ) exit;;
  19.  
  20. * ) echo "Please select Y or N."; break ;;
  21. esac
  22. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement