Answer the question
In order to leave comments, you need to log in
Why is a symbolic link not being created on a relative path?
Broke symbolic links in letsencrypt. I decided to write a script that will fix this ... The problem is that broken links are created, and if you use the full let to the source, then everything works fine.
domain="example.com"
num="1"
rm -f ./live/$domain/*.pem
ln -s ./archive/${domain}/cert${num}.pem ./live/${domain}/cert.pem
ln -s ./archive/${domain}/chain${num}.pem ./live/${domain}/chain.pem
ln -s ./archive/${domain}/fullchain${num}.pem ./live/${domain}/fullchain.pem
ln -s ./archive/${domain}/privkey${num}.pem ./live/${domain}/privkey.pem
#проверку проходит!
FILE="./archive/${domain}/cert${num}.pem"
if [ -f $FILE ]; then
echo "The file '$FILE' exists."
else
echo "The file '$FILE' in not found."
fi
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question