database/uninstall.sh in evt-event_source-postgres-0.18.0.0 vs database/uninstall.sh in evt-event_source-postgres-0.18.0.1
- old
+ new
@@ -41,10 +41,10 @@
}
function delete-database {
echo "Database name is: $database"
- database_exists=`psql -tAc "SELECT 1 FROM pg_database WHERE datname='$database'"`
+ database_exists=`psql postgres -tAc "SELECT 1 FROM pg_database WHERE datname='$database'"`
if [ "$database_exists" = "1" ]; then
echo "Deleting database \"$database\""
dropdb $database
else