daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top