diff --git a/root/etc/e-smith/templates/etc/crontab/80letsencrypt b/root/etc/e-smith/templates/etc/crontab/80letsencrypt index d1caafe..ffab153 100644 --- a/root/etc/e-smith/templates/etc/crontab/80letsencrypt +++ b/root/etc/e-smith/templates/etc/crontab/80letsencrypt @@ -4,7 +4,7 @@ my $le = $letsencrypt{'status'} || 'disabled'; if ($le eq 'enabled'){ $OUT .= '# Letsencrypt renewal' . "\n"; - $OUT .= '2 4 * * * root sleep $[ $RANDOM \% 3600 ]; /usr/bin/letsencrypt.sh -c >> /var/log/letsencrypt.sh.log 2>&1' . "\n"; + $OUT .= '2 4 * * * root sleep $[ $RANDOM \% 3600 ]; { /usr/bin/letsencrypt.sh -c >> /var/log/letsencrypt.sh.log } 2>&1 | tee -a /var/log/letsencrypt.sh.log' . "\n"; } else{ $OUT .= '# Letsencrypt is disabled' . "\n";