Permalink
Browse files

reset_rt helper script

It was really useful for me, so may help someone else.
  • Loading branch information...
1 parent 8186b88 commit 421f5e7d3caa56eab6bf5fc36c4dbf1fea3a4e02 @afresh1 committed Aug 12, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 reset_rt
View
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# This resets an SQLite 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
+if [ -e initialdata ]; then
+ rt-setup-database --action insert --dba-password=x --datafile initialdata
+fi
+/etc/rc.d/rt restart
+

0 comments on commit 421f5e7

Please sign in to comment.