diff --git a/root/etc/e-smith/templates/etc/letsencrypt.sh/domains.txt/10domains b/root/etc/e-smith/templates/etc/letsencrypt.sh/domains.txt/10domains index d8e690f..22a8edb 100644 --- a/root/etc/e-smith/templates/etc/letsencrypt.sh/domains.txt/10domains +++ b/root/etc/e-smith/templates/etc/letsencrypt.sh/domains.txt/10domains @@ -21,9 +21,9 @@ foreach my $host ($h->hosts){ $dom = $1; } my $type = $host->prop('HostType') || 'Self'; - my $le = $host->prop('Letsencrypt') || 'disabled'; + my $le = $host->prop('Letsencrypt') || 'default'; if ($le =~ m/^enabled|yes|1|on$/i || - $type eq 'Self' && $dom eq $DomainName){ + ($type eq 'Self' && $dom eq $DomainName) && ($le !~ m/^disabled|no|0|off$/)){ push @names, $host->key; } }