install.sh: use DESTDIR like variables for basedir, webroot and cgiroot
commitedc907f9e189a13852084908668215a2f11099e9
authorKyle J. McKay <mackyle@gmail.com>
Mon, 21 Nov 2016 01:02:00 +0000 (20 17:02 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 21 Nov 2016 01:02:00 +0000 (20 17:02 -0800)
tree8e518984c191982ceb2a9ba3d07997020827cced
parentea3902af6d88da61ab58d6d5fbdbc34831e53b34
install.sh: use DESTDIR like variables for basedir, webroot and cgiroot

In preparation for a more atomic installation where the new versions of
$cfg_basedir, $cfg_webroot and $cfg_cgiroot are created in another location
and then renamed into place, create three new variables basedir, webroot
and cgiroot and switch to them instead of cfg_basedir, cfg_webroot and
cfg_cgiroot.

We must be careful though to only switch the places that are actually
creating or modifying installation files and not the places that are writing
configuration data or printing advice.

This change is strictly a variable name replacement (with a few added lines
to initialize the new variables) and does not change the installation
process at all.  That is left to the next step.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
install.sh