chore: Remove unneeded letsencrypt symlink (#30221)

This commit is contained in:
Shrikant Sharat Kandula 2024-01-11 09:58:52 +05:30 committed by GitHub
parent bbead24cd3
commit ecfa5eba78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View File

@ -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)

View File

@ -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