projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0aaff1
)
adding some old random tools from the CVS tree
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 20 Feb 2012 02:32:04 +0000
(18:32 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 20 Feb 2012 02:32:04 +0000
(18:32 -0800)
bin/move-datasrc
[new file with mode: 0644]
patch
|
blob
diff --git a/bin/move-datasrc
b/bin/move-datasrc
new file mode 100644
(file)
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
+