scripts: Fix lazy chown syntax
[hcoop/domtool2.git] / scripts / domtool-adduser
index 3133cff..34a82a5 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh -e
 
+if ! [ -e `domtool-config -path cert ca` ]; then
+    echo "domtool ca not found.  Are you running this on the same machine as domtool-server?"
+    exit 1
+fi
+
 domtool-addcert $*
 domtool-addacl $*