Fix custom domain's env variable name (#10092)

This commit is contained in:
Shrikant Sharat Kandula 2021-12-31 18:04:10 +05:30 committed by GitHub
parent d71a873e16
commit 8411e35999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,11 +9,10 @@ if [[ -f /appsmith-stacks/configuration/docker.env ]]; then
set +o allexport
fi
if [[ -n $CUSTOM_DOMAIN ]]; then
#then run script
local data_path="/appsmith-stacks/data/certificate"
domain="$CUSTOM_DOMAIN"
local rsa_key_size=4096
if [[ -n $APPSMITH_CUSTOM_DOMAIN ]]; then
data_path="/appsmith-stacks/data/certificate"
domain="$APPSMITH_CUSTOM_DOMAIN"
rsa_key_size=4096
certbot certonly --webroot --webroot-path="$data_path/certbot" \
--register-unsafely-without-email \
@ -24,4 +23,4 @@ if [[ -n $CUSTOM_DOMAIN ]]; then
supervisorctl restart editor
else
echo 'Custom domain not configured. Cannot enable SSL without a custom domain.' >&2
fi
fi