summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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