a guest Mar 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # change directory to edx-platform
- cd /edx/app/edxapp/edx-platform
- # prompt user, and read command line argument
- read -p 'Enter course ID: ' idcourse
- read -p "Rizky, Are you sure you want to generate the certificate (Y/N)? " answer
- # handle the command line argument we were given
- while true
- case $answer in
- [yY]* ) echo "Okay Rizky, Start generating $idcourse "
- sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws ungenerated_certs -c $idcourse --insecure
- [nN]* ) exit;;
- * ) echo "Please select Y or N."; break ;;
RAW Paste Data