Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 0d1cd2f

Browse files
committed
Be verbose about copying into /cert
Make sure we are verbose in the log about which files we copy into /cert.
1 parent fc418de commit 0d1cd2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

files/etc/my_init.d/mkcert.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ IFS=' ' read -r -a MKCERT_DOMAINS <<< "${MKCERT_DOMAINS}"
4444

4545
# Expose the generated certificate in /cert named after the first
4646
# domain name (compatible with Dory / nginx-proxy).
47+
echo "Copying certficate(s) and key(s) into /cert:"
4748
for domain in "${MKCERT_DOMAINS[@]}"
4849
do
4950
# Strip wildcard.
5051
domain="${domain#\*\.}"
51-
cp /etc/ssl/certs/ssl-cert-snakeoil.pem "/cert/${domain}.crt"
52-
cp /etc/ssl/private/ssl-cert-snakeoil.key "/cert/${domain}.key"
52+
cp -v /etc/ssl/certs/ssl-cert-snakeoil.pem "/cert/${domain}.crt"
53+
cp -v /etc/ssl/private/ssl-cert-snakeoil.key "/cert/${domain}.key"
5354
done

0 commit comments

Comments
 (0)