Hello,
I aded a renewal-hook by creating in the directory /etc/letsencrypt/renewal-hooks/deploy a file named coturn which contains the lines below. This hook is supposed to copy the fullchain and the privkey files in the directory /etc/turnserver
But nothing happened. I copied these files myself manually. Mayby the reason is that the certificate isn't due for renewal yet.
My question is how do I know if this hook is working correctly before the certificate is due for renewal ?
#!/bin/bash -e
for certfile in fullchain.pem privkey.pem ; do
cp -L /etc/letsencrypt/live/<turn.example.com>/"${certfile}" /etc/turnserver/"${certfile}".new
chown turnserver:turnserver /etc/turnserver/"${certfile}".new
mv /etc/turnserver/"${certfile}".new /etc/turnserver/"${certfile}"
done
systemctl kill -sUSR2 coturn.service