summaryrefslogtreecommitdiff
path: root/localikiwikicreatesite
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-10-12 17:30:40 +0000
committerJonas Smedegaard <dr@jones.dk>2007-10-12 17:30:40 +0000
commit5624b726aadc9fa6cee855008849136b248b849e (patch)
treee08ab32c2f39bfe83aeda1a4547f3922eff28527 /localikiwikicreatesite
parentc409cf9a1dd27aceee4b46e364275d9f0979023d (diff)
Grab second option as source host.
Diffstat (limited to 'localikiwikicreatesite')
-rwxr-xr-xlocalikiwikicreatesite3
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