Skip to content

Commit 534af3a

Browse files
fix: refine CA certificate detection logic in entrypoint script
Updated the entrypoint script to enhance the detection of custom CA certificates. The logic now correctly identifies both regular files and symbolic links with a '.crt' extension, improving the robustness of the CA certificate setup process.
1 parent cbf51a5 commit 534af3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/docker/fs/opt/appsmith/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ setup-custom-ca-certificates() (
369369
tlog "Looks like you have some '.pem' files in your 'ca-certs' folder. Please rename them to '.crt' to be picked up automatically.".
370370
fi
371371

372-
if ! [[ -d "$stacks_ca_certs_path" && "$(find "$stacks_ca_certs_path" -maxdepth 1 -type f -o -type l -name '*.crt' | wc -l)" -gt 0 ]]; then
372+
if ! [[ -d "$stacks_ca_certs_path" && "$(find "$stacks_ca_certs_path" -maxdepth 1 \( -type f -name '*.crt' -o -type l -name '*.crt' \) | wc -l)" -gt 0 ]]; then
373373
tlog "No custom CA certificates found."
374374
return
375375
fi

0 commit comments

Comments
 (0)