mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Regen nginx conf to be sure it integrates OCSP Stapling (#588)
* [fix] Regen nginx conf to be sure it integrates OCSP Stapling * Typo * Regen nginx each time we enable a new cert * add comment about the reason of the PR
This commit is contained in:
parent
640bc494cb
commit
48e20ca9bf
1 changed files with 5 additions and 0 deletions
|
@ -803,6 +803,11 @@ def _enable_certificate(domain, new_cert_folder):
|
||||||
for service in ("postfix", "dovecot", "metronome"):
|
for service in ("postfix", "dovecot", "metronome"):
|
||||||
_run_service_command("restart", service)
|
_run_service_command("restart", service)
|
||||||
|
|
||||||
|
if os.path.isfile('/etc/yunohost/installed'):
|
||||||
|
# regen nginx conf to be sure it integrates OCSP Stapling
|
||||||
|
# (We don't do this yet if postinstall is not finished yet)
|
||||||
|
service_regen_conf(names=['nginx'])
|
||||||
|
|
||||||
_run_service_command("reload", "nginx")
|
_run_service_command("reload", "nginx")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue