Created
January 7, 2017 22:40
-
-
Save Chouchen/2cd4cac9d1bec9704ef481c2a42b1345 to your computer and use it in GitHub Desktop.
My files in /etc/letsencrypt/live/* weren't symbolic link as they should be. Here's a patch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in /etc/letsencrypt/live/* ; do | |
if [ -d "$i" ]; then | |
j=$(basename "$i") | |
mv $i/fullchain.pem $i/fullchain.pem.old | |
mv $i/cert.pem $i/cert.pem.old | |
mv $i/chain.pem $i/chain.pem.old | |
mv $i/privkey.pem $i/privkey.pem.old | |
ln -s /etc/letsencrypt/archive/$j/fullchain1.pem /etc/letsencrypt/live/$j/fullchain.pem | |
ln -s /etc/letsencrypt/archive/$j/cert1.pem /etc/letsencrypt/live/$j/cert.pem | |
ln -s /etc/letsencrypt/archive/$j/chain1.pem /etc/letsencrypt/live/$j/chain.pem | |
ln -s /etc/letsencrypt/archive/$j/privkey1.pem /etc/letsencrypt/live/$j/privkey.pem | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to certbot/certbot#2550 (comment)