rmdb 352 B

12345678910111213141516
  1. #!/bin/sh
  2. #
  3. # Small script to remove the demo database again.
  4. # This script accepts 1 (optional) argument :
  5. # a database you can connect to. Default is 'testdb'
  6. #
  7. echo -n "Removing table email from db ${1-testdb}..."
  8. psql ${1-testdb} << EOF >/dev/null 2>&1
  9. drop table email;
  10. EOF
  11. if [ ! $? = 0 ]; then
  12. echo "Failed."
  13. else
  14. echo "Done."
  15. fi
  16. # Ready