fix: removed redundant func call init_ssl_cert (#12854)

This commit is contained in:
Sumesh Pradhan 2022-04-13 11:26:17 +05:30 committed by GitHub
parent 8420f6c5fa
commit f973c2d86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,6 @@ if [[ -n ${APPSMITH_CUSTOM_DOMAIN-} ]] && [[ -z ${DYNO-} ]]; then
APP_TEMPLATE="$https_conf"
if ! [[ -e "/etc/letsencrypt/live/$APPSMITH_CUSTOM_DOMAIN" ]]; then
source "/opt/appsmith/init_ssl_cert.sh"
init_ssl_cert "$APPSMITH_CUSTOM_DOMAIN"
if ! init_ssl_cert "$APPSMITH_CUSTOM_DOMAIN"; then
echo "Status code from init_ssl_cert is $?"
APP_TEMPLATE="$http_conf"