From: Clinton Ebadi Date: Fri, 25 Apr 2014 22:01:34 +0000 (-0400) Subject: bootstrap: ensure ca config exists before continuing X-Git-Tag: release_20140428~10 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/97dac8e48c168b6b708380ef4d77e88a86f848a9 bootstrap: ensure ca config exists before continuing --- diff --git a/bootstrap/domtool-create-ca b/bootstrap/domtool-create-ca index 452c2e1..bab09ca 100755 --- a/bootstrap/domtool-create-ca +++ b/bootstrap/domtool-create-ca @@ -15,6 +15,11 @@ fi CAPATH=`../bin/domtool-config -path cert ca` BASE_OPENSSL_CONFIG=`../bin/domtool-config -domain`.core.ssl.conf +if [ ! -f $BASE_OPENSSL_CONFIG ]; then + echo "You need to create $BASE_OPENSSL_CONFIG before continuing" + exit 1 +fi + cat $BASE_OPENSSL_CONFIG common.ssl.conf > domtool-openssl.conf if [ -z "$CAPATH" ]; then