Fix cron template

tags/smeserver-letsencrypt-client-0.2.4-1 0.1.5_el5
Daniel Berteaud 9 years ago
parent 38e228cb49
commit 5467cea2c2
  1. 4
      root/etc/e-smith/templates/etc/cron.daily/letsencrypt.sh/10All

@ -1,9 +1,9 @@
{
if (($letsencrypt{'status'} || 'disabled') eq 'enabled'){
$OUT .= "/usr/bin/letsencrypt.sh -c 2>&1 | 2>&1 | awk '{ print strftime(), $0; fflush(); }' >> /var/log/letsencrypt.sh.log\n";
$OUT .= "/usr/bin/letsencrypt.sh -c 2>&1 | awk '{ print strftime(), \$0; fflush(); }' >> /var/log/letsencrypt.sh.log\n";
if (($letsencrypt{'RevokeOldCertificates'} || 'disabled') =~ m/^enabled|on|yes|1$/){
$OUT .= "/usr/bin/le_revoke.sh 2>&1 | 2>&1 | awk '{ print strftime(), $0; fflush(); }' >> /var/log/letsencrypt.sh.log\n";
$OUT .= "/usr/bin/le_revoke.sh 2>&1 | awk '{ print strftime(), \$0; fflush(); }' >> /var/log/letsencrypt.sh.log\n";
}
}

Loading…
Cancel
Save