A dehydrated (ACME client) integration on SME Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
282 B

{
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 > /dev/null 2>&1' . "\n";
}
else{
$OUT .= '# Letsencrypt is disabled' . "\n";
}
}