[horde] updating config files

Craig White craigwhite at azapple.com
Fri Jan 9 13:36:03 PST 2004


On Fri, 2004-01-09 at 13:13, Adrian DeBoer wrote:
> I now realize what I have to do to fix my problem.  I
> found out in the below post to the mailing list. 
> 
> http://marc.theaimsgroup.com/?l=horde&m=103184286705435&w=2
> 
> My question is:  How do I "update" my config files. 
> When I downloaded CVS, I renamed all the *.php.dist
> to*.php - I kinda lost on the "foo" thing??
> 
> Can someone point me in the rigth direction or provide
> some friendly advice on what must be done...??
----
the point of the command was to keep the php.dist files so if you screw
up the editing, you still had the original config files to start over
with.

you could manually type
cp conf.php.dist conf.php
cp hooks.php.dist hooks.php
cp html.php.dist html.php
etc.

or if you are using a bash compatible shell...
for foo in *.dist; do cp $foo `basename $foo .dist`; done

will do this for you in one line.

consider...

cd /var/www/html/horde/config
for foo in *.dist; do cp $foo `basename $foo .dist`; done
cd ../imp/config
for foo in *.dist; do cp $foo `basename $foo .dist`; done
cd ../turba/config
for foo in *.dist; do cp $foo `basename $foo .dist`; done
cd ../kronolith/config
for foo in *.dist; do cp $foo `basename $foo .dist`; done

now, all you have to do is edit the specific *.php files in each config
folder as horde configuration isn't zen like...yet.

Craig




More information about the horde mailing list