diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-10-12 17:30:40 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-10-12 17:30:40 +0000 |
commit | 5624b726aadc9fa6cee855008849136b248b849e (patch) | |
tree | e08ab32c2f39bfe83aeda1a4547f3922eff28527 | |
parent | c409cf9a1dd27aceee4b46e364275d9f0979023d (diff) |
Grab second option as source host.
-rwxr-xr-x | localikiwikicreatesite | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/localikiwikicreatesite b/localikiwikicreatesite index 7589aea..c49942e 100755 --- a/localikiwikicreatesite +++ b/localikiwikicreatesite @@ -6,11 +6,12 @@ set -e host=$1 [ -z "$host" ] && echo "ERROR: Hostname must be supplied!" && exit 1 +srchost=${2:-source.$host} SRCDIR=~/private_webdata/$host/content CFGDIR=~/private_webdata/$host/backend DESTDIR=~/public_websites/$host -DESTSRCDIR=~/public_websites/source.$host +DESTSRCDIR=~/public_websites/$srchost ## Init public RCS repositories mkdir -p $DESTSRCDIR |