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