config: warn that changing localRoot will not work currently
[hcoop/domtool2.git] / bootstrap / bootstrap
1 #!/bin/sh -e
2
3 # Bootstrap everything for a DEVELOPMENT ENVIRONMENT (an insecure one
4 # at that), assuming you are going to be domtool root
5
6 if [ -z "`getent passwd domtool`" ]; then
7 adduser --disabled-password domtool
8 fi
9
10 ./domtool-create-shared-root
11 ./domtool-create-local-root
12 ./domtool-create-ca -force
13 ./domtool-init-truststore
14 ./domtool-init-acl `whoami`
15 domtool-addcert `uname -n` -unsafe
16
17 /usr/local/sbin/domtool-server &
18 SERVER_PID=$!
19
20 domtool-adduser `whoami` -unsafe
21
22 kill $SERVER_PID