Difference between revisions of "Keeping your site configs from wiping during updates"
From Dreamwidth Notes
Foxfirefey (Talk | contribs) |
Foxfirefey (Talk | contribs) m (added an instruction) |
||
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 | |
<source lang="bash">cd $LJHOME | <source lang="bash">cd $LJHOME |
Revision as of 04: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<tt> to your satisfaction. Then edit <tt>$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/multiconf-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.