uninstall_db.sh (314B)
1 #!/bin/bash 2 # Drop the development database created by install_db.sh. 3 set -eu 4 5 DB_HOST=${DB_HOST:-localhost} 6 DB_PORT=${DB_PORT:-5432} 7 DB_NAME=${DB_NAME:-verifier_db} 8 DB_USER=${DB_USER:-verifier_user} 9 10 export PGHOST="$DB_HOST" 11 export PGPORT="$DB_PORT" 12 13 dropdb --if-exists "$DB_NAME" 14 dropuser --if-exists "$DB_USER"