Possibility to explicitely disable Self hosts

tags/smeserver-letsencrypt-client-0.2.4-1 0.0.1_el6
Daniel Berteaud 9 years ago
parent ebdeabf799
commit 88a7d5fda0
  1. 4
      root/etc/e-smith/templates/etc/letsencrypt.sh/domains.txt/10domains

@ -21,9 +21,9 @@ foreach my $host ($h->hosts){
$dom = $1; $dom = $1;
} }
my $type = $host->prop('HostType') || 'Self'; 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 || 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; push @names, $host->key;
} }
} }

Loading…
Cancel
Save