#! /bin/sh
-if [ -z "$1" ]; then
- echo "Usage: $0 vhost [...params...]" >&2
+if [ -z "$2" ]; then
+ echo "Usage: $0 host vhost [...params...]" >&2
exit 1
fi
+host="$1"
+shift
vhost="$1"
shift
cd "`dirname \"$0\"`" &&
exec ../run-roles debian/add-apache-vhost "$@" \
- -e virtual_host="$vhost" -e gather_facts=true
+ -e virtual_host="$vhost" -e gather_facts=true -e hosts="$host"
#! /bin/sh
-if [ -z "$1" ]; then
- echo "Usage: $0 domain [...params...]" >&2
+if [ -z "$2" ]; then
+ echo "Usage: $0 host domain [...params...]" >&2
exit 1
fi
+host="$1"
+shift
domain="$1"
shift
cd "`dirname \"$0\"`" &&
exec ../run-roles debian/add-dns-domain "$@" \
- -e domain="$domain" -e gather_facts=true
+ -e domain="$domain" -e gather_facts=true -e hosts="$host"