Fix deploy hook on sme8

There was two problems: the manual expand-template for the pem file was wrong, and the smeserver-letsencrypt-client rpm provided the /etc/e-smith/event/ssl-update event. So the test for it not existing was always false. But this event did nothing except expand a single config template, no ssl cert was being updated
tags/smeserver-letsencrypt-client-0.2.4-1 0.1.10_el5
Daniel Berteaud 9 years ago
parent 71628a7621
commit 789d868e89
  1. 2
      createlinks
  2. 2
      root/etc/letsencrypt.sh/hooks_deploy_cert.d/10smeserver.sh

@ -2,7 +2,7 @@
use esmith::Build::CreateLinks qw(:all); use esmith::Build::CreateLinks qw(:all);
templates2events("/etc/letsencrypt.sh/config", qw(letsencrypt-update ssl-update bootstrap-console-save)); templates2events("/etc/letsencrypt.sh/config", qw(letsencrypt-update bootstrap-console-save));
templates2events("/etc/cron.daily/letsencrypt.sh", qw(letsencrypt-update)); templates2events("/etc/cron.daily/letsencrypt.sh", qw(letsencrypt-update));
templates2events("/etc/letsencrypt.sh/domains.txt", templates2events("/etc/letsencrypt.sh/domains.txt",
qw( qw(

@ -30,7 +30,7 @@ fi
if [ -d /etc/e-smith/events/ssl-update ]; then if [ -d /etc/e-smith/events/ssl-update ]; then
/sbin/e-smith/signal-event ssl-update /sbin/e-smith/signal-event ssl-update
else else
/sbin/e-smith/expand-template /home/e-smith/db/ssl.pem/pem /sbin/e-smith/expand-template /home/e-smith/ssl.pem/pem
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/sbin/e-smith/expand-template /var/service/qpsmtpd/ssl/cert.pem /sbin/e-smith/expand-template /var/service/qpsmtpd/ssl/cert.pem
/usr/bin/sv 1 /service/httpd-e-smith /usr/bin/sv 1 /service/httpd-e-smith

Loading…
Cancel
Save