chore: Remove unneeded letsencrypt symlink (#30221)
This commit is contained in:
parent
bbead24cd3
commit
ecfa5eba78
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user