1 2 3 4 5 6 7 8 9 10 11 12 13 14 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