|
@@ -884,10 +884,18 @@ function install_xmpp_main {
|
884
|
884
|
fi
|
885
|
885
|
|
886
|
886
|
# create a certificate
|
887
|
|
- if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "0" ]]; then
|
888
|
|
- if [[ "$(cert_exists xmpp)" == "0" ]]; then
|
|
887
|
+ if [ ! -f /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
|
888
|
+ if [ ! -f /etc/ssl/certs/xmpp.crt ]; then
|
889
|
889
|
${PROJECT_NAME}-addcert -h xmpp --dhkey ${DH_KEYLENGTH}
|
890
|
890
|
check_certificates xmpp
|
|
891
|
+ if [ ! -f /etc/ssl/certs/xmpp.crt ]; then
|
|
892
|
+ echo $'Failed to create xmpp certificate'
|
|
893
|
+ exit 72352
|
|
894
|
+ fi
|
|
895
|
+ if [ ! -f /etc/ssl/private/xmpp.key ]; then
|
|
896
|
+ echo $'Failed to create xmpp private certificate'
|
|
897
|
+ exit 36829
|
|
898
|
+ fi
|
891
|
899
|
fi
|
892
|
900
|
fi
|
893
|
901
|
|