As discussed on #mailu-dev

Don't attempt to guess what the user wants
This commit is contained in:
Florent Daigniere
2022-03-10 13:36:08 +01:00
parent 7970dd7145
commit 3a56525e21

View File

@@ -4,11 +4,7 @@ import os
import time
import subprocess
hostnames = list(set(os.environ['HOSTNAMES'].split(',')))
for hostname in hostnames:
if not hostname.startswith('autoconfig.'):
hostnames.append(f'autoconfig.{hostname}')
hostnames = ','.join(set(hostnames))
hostnames = ','.join(set(os.environ['HOSTNAMES'].split(',')))
command = [
"certbot",