From bd704e2d54ed7b44a722f1316f64b8599a548441 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 19 Feb 2012 18:32:04 -0800 Subject: [PATCH] adding some old random tools from the CVS tree --- bin/move-datasrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bin/move-datasrc 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 + -- 2.11.0