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

From Dreamwidth Notes
Jump to: navigation, search
m (fixing html)
(new instructions)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
If you are working with <tt>dw-nonfree</tt> code, updates can wipe your site config files.  This is a way to get around that.
 
If you are working with <tt>dw-nonfree</tt> code, updates can wipe your site config files.  This is a way to get around that.
  
First, edit <tt>$LJHOME/etc/config-local.pl</tt> to your satisfaction.  Then edit <tt>$LJHOME/cvs/multicvs-local.conf</tt> and add <tt>local .</tt> under <tt>dw-private/site?</tt>.  Then, make your local directories
+
First, edit <tt>$LJHOME/etc/config-local.pl</tt> to your satisfaction.  Then, make your local directories:
  
 
<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 etc/config-local.pl cvs/local/etc</source>
 
cp etc/config-local.pl cvs/local/etc</source>
  
The downside to this is that you should check the <tt>multicvs-local.conf</tt> file when you update to make sure it hasn't changed:
+
Create <tt>$LJHOME/cvs/local/cvs/multicvs-private.conf</tt> and put this in it:
  
<source lang="bash">diff $LJHOME/cvs/multicvs-local.conf /home/dw/cvs/dw-nonfree/cvs/multicvs-local.conf</source>
+
local .
  
You should only see the line you added:
+
Then, copy it to the main <tt>cvs</tt> directory:
  
  5d4
+
  cp $LJHOME/cvs/local/cvs/multicvs-private.conf $LJHOME/cvs/
< local .
+
  
If it has more differences, you'll have to merge the new one with the one you are using.
+
From now on, if you want to make changes to <tt>config-local.pl</tt>, do them to the <tt>cvs/local/etc/config-local.pl</tt> version.
 +
 
 +
== Old instructions ==
 +
 
 +
Previously, these instructions used <tt>$LJHOME/cvs/local/cvs/multicvs-local.conf</tt>.  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
  
 
[[Category: Dreamwidth Installation]]
 
[[Category: Dreamwidth Installation]]

Latest revision as of 22:11, 17 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, 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