hcoop: remove mccarthy and navajos from domtool control
[hcoop/domtool2.git] / bootstrap / domtool-create-local-root
CommitLineData
0f9f712c
CE
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
b5a575f0 7LOCALROOT=`../bin/domtool-config -path local-root`
0f9f712c
CE
8
9if [ -z "$LOCALROOT" ]; then
10 echo "ERROR: local root not set. Domtool not built?"
11 exit 1
12fi
13
14set -x
15
16mkdir -p $LOCALROOT
17
18for d in firewall vhosts zones; do
19 mkdir $LOCALROOT/$d
20done
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