run.sh 392 B

1234567891011121314
  1. #!/bin/bash
  2. # This script is useful if you want to run pybot as his own user.
  3. # Either add a pybot user to your system `adduser pybot`, or
  4. # change the user here to who you want to run the bot.
  5. # Or you can run the bot as yourself. Whatever. See if I care.
  6. user='pybot'
  7. if [ "$(id -u)" -ne 0 ]; then
  8. echo "Error, please execute this script as root."
  9. exit
  10. fi
  11. sudo su $user -c ./pybot.py