X-Git-Url: https://git.hcoop.net/jyaworski/domtool2.git/blobdiff_plain/f8e7de3e6b0f0f92edb07fc87dacb4c499849e87..0f9f712c42a2edc78be0656f2c167265167df48a:/bootstrap/domtool-create-shared-root diff --git a/bootstrap/domtool-create-shared-root b/bootstrap/domtool-create-shared-root new file mode 100755 index 0000000..ba0ebbf --- /dev/null +++ b/bootstrap/domtool-create-shared-root @@ -0,0 +1,29 @@ +#!/bin/bash + +# Create shared directories, set permissions + +SHAREDROOT=`../bin/domtool-config -path shared-root` + +if [ -z "$SHAREDROOT" ]; then + echo "shared-root not set, domtool not built?" + exit 1 +fi + +function if_afs () { + if [[ $SHAREDROOT == /afs/* ]]; then + $* + fi +} + +if_afs echo "AFS in use. This will not work correctly." + +set -x + +mkdir -p $SHAREDROOT + +for d in backup certs email firewall keys lib logs nodes nodes.old serials webalizer; do + mkdir $SHAREDROOT/$d +done + +touch $SHAREDROOT/firewall/user.rules +