mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add post_cert_update hook each time certificate is updated (#586)
This commit is contained in:
parent
cd7477a97d
commit
fa5a226339
1 changed files with 3 additions and 0 deletions
|
@ -810,6 +810,9 @@ def _enable_certificate(domain, new_cert_folder):
|
||||||
|
|
||||||
_run_service_command("reload", "nginx")
|
_run_service_command("reload", "nginx")
|
||||||
|
|
||||||
|
from yunohost.hook import hook_callback
|
||||||
|
hook_callback('post_cert_update', args=[domain])
|
||||||
|
|
||||||
|
|
||||||
def _backup_current_cert(domain):
|
def _backup_current_cert(domain):
|
||||||
logger.debug("Backuping existing certificate for domain %s", domain)
|
logger.debug("Backuping existing certificate for domain %s", domain)
|
||||||
|
|
Loading…
Add table
Reference in a new issue