teardownRealtime.sh 407 B

123456789101112
  1. #!/usr/bin/env bash
  2. CIDIR=$(dirname $(readlink -fn $0))
  3. CLEANUP_DB=0
  4. source $CIDIR/ci.functions
  5. cp test-config.orig.yaml test-config.yaml
  6. if [ $CLEANUP_DB -gt 0 ] ; then
  7. sudo -u postgres dropdb -e asterisk_test >/dev/null 2>&1 || :
  8. sudo -u postgres dropuser -e asterisk_test >/dev/null 2>&1 || :
  9. sudo odbcinst -u -d -n "PostgreSQL-Asterisk-Test"
  10. sudo odbcinst -u -s -l -n "asterisk-connector-test"
  11. fi