datproject-discussions
datproject-discussions copied to clipboard
ghost blog ssl renew script is not working
our blog's ssl cert went bad today. i went in the server and noticed this in the crontab:
15 3 * * * sudo service stop nginx && /usr/bin/certbot renew --quiet --renew-hook "/bin/systemctl reload nginx"
I tried running that and got errors. so I dont think that command is correct, or maybe I was doing something wrong. Also we're running the blog process as root which is probably bad.
sudo system nginc stop should fix it i think but using add-nginx-ssl would fix it as well without having to restart nginx on renew