domtool-adduser: use domtool-config to find ca
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 25 Apr 2014 21:48:42 +0000 (17:48 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 25 Apr 2014 21:48:42 +0000 (17:48 -0400)
scripts/domtool-adduser

index c8497ee..34a82a5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh -e
 
-if ! [ -e /etc/domtool ]; then
-    echo "/etc/domtool not found.  Are you running this on the same machine as domtool-server?"
+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