Maybe it’s because the beginning of --post-hook starts on a separate line! I’ve put everything on one line now. Do you think this is probably the issue?
Thanks.
Is this a script that you put in /etc/cron.daily or something?
What authentication method are you using? What command did you originally run to get the certificate?
Do you get an error message anywhere or just see nginx not running afterward? Is there any error in the nginx logs? What happens if you run /usr/sbin/service nginx-sp reload yourself as root?