diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-02-19 18:32:04 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-02-19 18:32:04 -0800 |
commit | bd704e2d54ed7b44a722f1316f64b8599a548441 (patch) | |
tree | d375645c55764c94dba8b82be3568042f0e01da3 /bin | |
parent | a0aaff1c093d24a0067074c06e85ccb15d8ecdc8 (diff) |
adding some old random tools from the CVS tree
Diffstat (limited to 'bin')
-rw-r--r-- | bin/move-datasrc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/move-datasrc b/bin/move-datasrc new file mode 100644 index 000000000..e048cbee0 --- /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 + |