summaryrefslogtreecommitdiff
path: root/bin/move-datasrc
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-02-19 18:32:04 -0800
committerIvan Kohler <ivan@freeside.biz>2012-02-19 18:32:04 -0800
commitbd704e2d54ed7b44a722f1316f64b8599a548441 (patch)
treed375645c55764c94dba8b82be3568042f0e01da3 /bin/move-datasrc
parenta0aaff1c093d24a0067074c06e85ccb15d8ecdc8 (diff)
adding some old random tools from the CVS tree
Diffstat (limited to 'bin/move-datasrc')
-rw-r--r--bin/move-datasrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/move-datasrc b/bin/move-datasrc
new file mode 100644
index 0000000..e048cbe
--- /dev/null
+++ b/bin/move-datasrc
@@ -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
+