Difference between revisions of "Keeping your site configs from wiping during updates"

From Dreamwidth Notes
Jump to: navigation, search
m (fixing html)
(correct filename)
Line 5: Line 5:
 
<source lang="bash">cd $LJHOME
 
<source lang="bash">cd $LJHOME
 
mkdir cvs/local cvs/local/etc cvs/local/cvs
 
mkdir cvs/local cvs/local/etc cvs/local/cvs
cp cvs/multiconf-local.conf cvs/local/cvs/
+
cp cvs/multicvs-local.conf cvs/local/cvs/
 
cp etc/config-local.pl cvs/local/etc</source>
 
cp etc/config-local.pl cvs/local/etc</source>
  

Revision as of 16:51, 16 February 2009

If you are working with dw-nonfree code, updates can wipe your site config files. This is a way to get around that.

First, edit $LJHOME/etc/config-local.pl to your satisfaction. Then edit $LJHOME/cvs/multicvs-local.conf and add local . under dw-private/site?. Then, make your local directories

cd $LJHOME
mkdir cvs/local cvs/local/etc cvs/local/cvs
cp cvs/multicvs-local.conf cvs/local/cvs/
cp etc/config-local.pl cvs/local/etc

The downside to this is that you should check the multicvs-local.conf file when you update to make sure it hasn't changed:

diff $LJHOME/cvs/multicvs-local.conf /home/dw/cvs/dw-nonfree/cvs/multicvs-local.conf

You should only see the line you added:

5d4
< local .

If it has more differences, you'll have to merge the new one with the one you are using.