|
|
@ -1,7 +1,7 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
if (($letsencrypt{'status'} || 'disabled') eq 'enabled'){ |
|
|
|
if (($letsencrypt{'status'} || 'disabled') eq 'enabled'){ |
|
|
|
$OUT .= 'sleep $[ $RANDOM \% 3600 ];' . "\n"; |
|
|
|
$OUT .= 'sleep $[ $RANDOM % 3600 ];' . "\n"; |
|
|
|
$OUT .= "/sbin/e-smith/letsencrypt.sh -c 2>&1 | awk '{ print strftime(), \$0; fflush(); }' >> /var/log/letsencrypt.sh.log\n"; |
|
|
|
$OUT .= "/sbin/e-smith/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$/){ |
|
|
|
if (($letsencrypt{'RevokeOldCertificates'} || 'disabled') =~ m/^enabled|on|yes|1$/){ |
|
|
|
$OUT .= "/usr/bin/le_revoke.sh 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"; |
|
|
|