mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
certificate/postfix: propagate postfix SNI stuff when renewing certificates
This commit is contained in:
parent
a480e937d2
commit
31794008c9
1 changed files with 3 additions and 2 deletions
|
@ -738,7 +738,7 @@ def _enable_certificate(domain, new_cert_folder):
|
||||||
|
|
||||||
logger.debug("Restarting services...")
|
logger.debug("Restarting services...")
|
||||||
|
|
||||||
for service in ("postfix", "dovecot", "metronome"):
|
for service in ("dovecot", "metronome"):
|
||||||
# Ugly trick to not restart metronome if it's not installed
|
# Ugly trick to not restart metronome if it's not installed
|
||||||
if (
|
if (
|
||||||
service == "metronome"
|
service == "metronome"
|
||||||
|
@ -750,7 +750,8 @@ def _enable_certificate(domain, new_cert_folder):
|
||||||
if os.path.isfile("/etc/yunohost/installed"):
|
if os.path.isfile("/etc/yunohost/installed"):
|
||||||
# regen nginx conf to be sure it integrates OCSP Stapling
|
# regen nginx conf to be sure it integrates OCSP Stapling
|
||||||
# (We don't do this yet if postinstall is not finished yet)
|
# (We don't do this yet if postinstall is not finished yet)
|
||||||
regen_conf(names=["nginx"])
|
# We also regenconf for postfix to propagate the SNI hash map thingy
|
||||||
|
regen_conf(names=["nginx", "postfix"])
|
||||||
|
|
||||||
_run_service_command("reload", "nginx")
|
_run_service_command("reload", "nginx")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue