Check for incorrect cert type

This commit is contained in:
Bob Mottram 2017-05-05 19:39:41 +01:00
parent 05f81082d2
commit 878d6a8028
1 changed files with 5 additions and 0 deletions

View File

@ -617,6 +617,11 @@ function install_matrix {
if [[ $ONION_ONLY == "no" ]]; then
chmod 755 /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam
fi
if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.crt ]; then
echo $'Incorrect certificate generated'
exit 73572
fi
fi
fi