mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
16 lines
336 B
Bash
Executable File
16 lines
336 B
Bash
Executable File
CERTS_DIR=${CERTS_DIR:-"/data/letsencrypt/certs"}
|
|
|
|
echo "CERTS_DIR: $CERTS_DIR"
|
|
|
|
for dir in "$CERTS_DIR"/*/; do
|
|
echo "Processing: $dir"
|
|
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
|