Add mccarthy as admin web server and mail node
[hcoop/domtool2.git] / bootstrap / domtool-init-acl
1 #!/bin/bash
2
3 SHAREDROOT=`../bin/domtool-config -path shared-root`
4 DOMTOOLROOT="$1"
5
6 if [ -z "$SHAREDROOT" ]; then
7 echo "shared-root not set, domtool not built?"
8 exit 1
9 fi
10
11 if [ -z "$DOMTOOLROOT" ]; then
12 echo "Usage: $0 USER"
13 exit 1
14 fi
15
16 if [ -f $SHAREDROOT/acl ]; then
17 echo "acl file already exists. Refusing to overwrite"
18 exit 1
19 fi
20
21 cat > $SHAREDROOT/acl <<EOF
22 $USER
23 priv all
24
25 EOF