Scripts to bootstrap a development domtool environment
[hcoop/domtool2.git] / bootstrap / bootstrap
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
new file mode 100755 (executable)
index 0000000..ba59893
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Bootstrap everything for a DEVELOPMENT ENVIRONMENT (an insecure one
+# at that), assuming you are going to be domtool root
+
+if [ -z "`getent passwd domtool`" ]; then
+    adduser --disabled-password domtool
+fi
+
+./domtool-create-shared-root
+./domtool-create-local-root
+./domtool-create-ca -force
+./domtool-init-truststore
+./domtool-init-acl `whoami`