adding some old random tools from the CVS tree
authorIvan Kohler <ivan@freeside.biz>
Mon, 20 Feb 2012 02:32:04 +0000 (18:32 -0800)
committerIvan Kohler <ivan@freeside.biz>
Mon, 20 Feb 2012 02:32:04 +0000 (18:32 -0800)
bin/move-datasrc [new file with mode: 0644]

diff --git a/bin/move-datasrc b/bin/move-datasrc
new file mode 100644 (file)
index 0000000..e048cbe
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+NEWDATASRC=
+NEWUSER=
+NEWPASS=
+
+cd /usr/local/etc/freeside
+
+mv secrets secrets.OLD
+echo "$NEWDATASRC\n$NEWUSER\n$NEWPASS" >secrets
+
+for a in cache clientapi_session conf counters dbdef export
+  do mv $a.DBI:Pg:dbname=freeside "$a.$NEWDATASRC"
+done
+