Browse files

Change to reset Postgres

I need to test on PostgreSQL now so yay!
  • Loading branch information...
1 parent fcc9f5a commit d5970e6692fd582478bab8f62019f6f33e14f54f @afresh1 committed Aug 12, 2012
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

0 comments on commit d5970e6

Please sign in to comment.