create files domtool needs to modify as domtool
[hcoop/domtool2.git] / bootstrap / bootstrap
index ba59893..b3a6a4f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 # Bootstrap everything for a DEVELOPMENT ENVIRONMENT (an insecure one
 # at that), assuming you are going to be domtool root
@@ -12,3 +12,11 @@ fi
 ./domtool-create-ca -force
 ./domtool-init-truststore
 ./domtool-init-acl `whoami`
+domtool-addcert `uname -n` -unsafe
+
+/usr/local/sbin/domtool-server &
+SERVER_PID=$!
+
+domtool-adduser `whoami` -unsafe
+
+kill $SERVER_PID