mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
13 lines
278 B
Bash
Executable File
13 lines
278 B
Bash
Executable File
CERTS_DIR=${CERTS_DIR:-"/data/letsencrypt/certs"}
|
|
|
|
for dir in "$CERTS_DIR"/*/; do
|
|
cd "$dir"
|
|
if [ -f "certificate.crt" ]; then
|
|
ln -sf certificate.crt fullchain
|
|
fi
|
|
if [ -f "privatekey.key" ]; then
|
|
ln -sf privatekey.key privkey
|
|
fi
|
|
cd -
|
|
done
|