Keeping your site configs from wiping during updates

From Dreamwidth Notes
Jump to: navigation, search

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, make your local directories:

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

Create $LJHOME/cvs/local/cvs/multicvs-private.conf and put this in it:

local .

Then, copy it to the main cvs directory:

cp $LJHOME/cvs/local/cvs/multicvs-private.conf $LJHOME/cvs/

From now on, if you want to make changes to config-local.pl, do them to the cvs/local/etc/config-local.pl version.

Old instructions

Previously, these instructions used $LJHOME/cvs/local/cvs/multicvs-local.conf. If you followed them, you can delete that file now and use the system set up above:

rm $LJHOME/cvs/local/cvs/multicvs-local.conf