Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change to reset Postgres

I need to test on PostgreSQL now so yay!
  • Loading branch information...
commit d5970e6692fd582478bab8f62019f6f33e14f54f 1 parent fcc9f5a
Andrew Fresh authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 reset_rt
11 reset_rt
@@ -1,12 +1,13 @@
-# This resets an SQLite RT database on OpenBSD anyway
+# This resets a PostgreSQL RT database on OpenBSD anyway
# It was very helpful when I was testing my import.
-rm /var/www/rt3/rt4
-rt-setup-database --action init --dba-password=x
+/etc/rc.d/rt stop
+psql -U _postgresql -d postgres -c 'DROP DATABASE rt4'
+rt-setup-database --action init --dba-password='Yd"L4l{B;?%@5LqC/D' --dba _postgresql
if [ -e initialdata ]; then
- rt-setup-database --action insert --dba-password=x --datafile initialdata
+ rt-setup-database --action insert --dba-password='Yd"L4l{B;?%@5LqC/D' --dba _postgresql --datafile initialdata
-/etc/rc.d/rt restart
+/etc/rc.d/rt start
Please sign in to comment.
Something went wrong with that request. Please try again.