From ecfa5eba7800b48f720f9d440110802d34199861 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 11 Jan 2024 09:58:52 +0530 Subject: [PATCH] chore: Remove unneeded letsencrypt symlink (#30221) --- deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs | 2 +- deploy/docker/fs/opt/appsmith/entrypoint.sh | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs b/deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs index 33f2892cb6..794ce9c5bb 100644 --- a/deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs +++ b/deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs @@ -16,7 +16,7 @@ if (CUSTOM_DOMAIN !== "") { certLocation = "/appsmith-stacks/ssl" } catch { // no custom certs, see if old certbot certs are there. - const letsEncryptCertLocation = "/etc/letsencrypt/live/" + CUSTOM_DOMAIN + const letsEncryptCertLocation = "/appsmith-stacks/letsencrypt/live/" + CUSTOM_DOMAIN const fullChainPath = letsEncryptCertLocation + `/fullchain.pem` try { fs.accessSync(fullChainPath, fs.constants.R_OK) diff --git a/deploy/docker/fs/opt/appsmith/entrypoint.sh b/deploy/docker/fs/opt/appsmith/entrypoint.sh index c253d80095..604927e015 100644 --- a/deploy/docker/fs/opt/appsmith/entrypoint.sh +++ b/deploy/docker/fs/opt/appsmith/entrypoint.sh @@ -252,14 +252,6 @@ use-mongodb-key() { chmod 600 "$MONGODB_TMP_KEY_PATH" } -# Keep Let's Encrypt directory persistent -mount_letsencrypt_directory() { - echo "Mounting Let's encrypt directory" - rm -rf /etc/letsencrypt - mkdir -p /appsmith-stacks/{letsencrypt,ssl} - ln -s /appsmith-stacks/letsencrypt /etc/letsencrypt -} - is_empty_directory() { [[ -d $1 && -z "$(ls -A "$1")" ]] } @@ -476,8 +468,6 @@ fi check_setup_custom_ca_certificates setup-custom-ca-certificates -mount_letsencrypt_directory - check_redis_compatible_page_size safe_init_postgres