Difference between revisions of "Keeping your site configs from wiping during updates"
From Dreamwidth Notes
Foxfirefey (Talk | contribs) |
Foxfirefey (Talk | contribs) (new instructions) |
||
(3 intermediate revisions by 2 users 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, 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 etc/config-local.pl cvs/local/etc</source> | cp etc/config-local.pl cvs/local/etc</source> | ||
− | + | Create <tt>$LJHOME/cvs/local/cvs/multicvs-private.conf</tt> and put this in it: | |
− | + | local . | |
− | + | Then, copy it to the main <tt>cvs</tt> directory: | |
− | + | cp $LJHOME/cvs/local/cvs/multicvs-private.conf $LJHOME/cvs/ | |
− | + | ||
− | + | 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