Skip to content

Commit

Permalink
Merge branch hotfix/v8.2.2 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
papacarlo committed Dec 9, 2024
2 parents 3d89aae + 330f5a4 commit b1fda38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run-document-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ fi

SSL_CERTIFICATES_DIR="/usr/share/ca-certificates/ds"
mkdir -p ${SSL_CERTIFICATES_DIR}
if [[ -d ${DATA_DIR}/certs ]] && [ -e ${DATA_DIR}/certs/*.crt ]; then
if find "${DATA_DIR}/certs" -type f \( -name "*.crt" -o -name "*.pem" \) -print -quit >/dev/null 2>&1; then
cp -f ${DATA_DIR}/certs/* ${SSL_CERTIFICATES_DIR}
chmod 644 ${SSL_CERTIFICATES_DIR}/*.crt ${SSL_CERTIFICATES_DIR}/*.pem
chmod 400 ${SSL_CERTIFICATES_DIR}/*.key
chmod 644 ${SSL_CERTIFICATES_DIR}/*.{crt,pem} 2>/dev/null
chmod 400 ${SSL_CERTIFICATES_DIR}/*.key 2>/dev/null
fi

if [[ -z $SSL_CERTIFICATE_PATH ]] && [[ -f ${SSL_CERTIFICATES_DIR}/${COMPANY_NAME}.crt ]]; then
Expand Down

0 comments on commit b1fda38

Please sign in to comment.