domain: fix validIpv6 predicate
[hcoop/domtool2.git] / bootstrap / domtool-create-shared-root
CommitLineData
0f9f712c
CE
1#!/bin/bash
2
3# Create shared directories, set permissions
4
5SHAREDROOT=`../bin/domtool-config -path shared-root`
6
7if [ -z "$SHAREDROOT" ]; then
8 echo "shared-root not set, domtool not built?"
9 exit 1
10fi
11
12function if_afs () {
13 if [[ $SHAREDROOT == /afs/* ]]; then
14 $*
15 fi
16}
17
18if_afs echo "AFS in use. This will not work correctly."
19
20set -x
21
22mkdir -p $SHAREDROOT
23
24for d in backup certs email firewall keys lib logs nodes nodes.old serials webalizer; do
25 mkdir $SHAREDROOT/$d
26done
27
28touch $SHAREDROOT/firewall/user.rules
29