hcoop: enable `minsky' as a mail node for all members
[hcoop/domtool2.git] / bootstrap / domtool-create-local-root
1 #!/bin/bash
2
3 # ideally: domtool-create-local-root service+
4 # service = bind, apache, exim, courier, etc.
5 # actually: domtool-create-local-root -> every possible service dir is created
6
7 LOCALROOT=`domtool-config -path local-root`
8
9 if [ -z "$LOCALROOT" ]; then
10 echo "ERROR: local root not set. Domtool not built?"
11 exit 1
12 fi
13
14 set -x
15
16 mkdir -p $LOCALROOT
17
18 for d in firewall vhosts zones; do
19 mkdir $LOCALROOT/$d
20 done
21
22 # domtool probably ought to ensure directories exist, since the
23 # services configured by a worker are set statically. It makes little
24 # sense for a worker to advertise that it can configure a service, and
25 # not actually be able to do so.
26