post_command don't work with letsencrypt

I'm use "post_command=/path/somescript.pl" option in /etc/webmin/virtual-server/config.

It rebuilds my nginx.conf (nginx as a reverse proxy to apache).

The problem with letsencrypt after requesting a certificate for domain.

There is my patch-request:

--- /usr/libexec/webmin/virtual-server/letsencrypt.cgi 2016-07-27 04:43:13.935399786 +0000
+++ /usr/libexec/webmin/virtual-server/letsencrypt.cgi 2016-07-27 04:43:06.932399786 +0000
@@ -87,6 +87,7 @@
&release_lock_ssl($d);
&$second_print($text{'setup_done'});

+        &made_changes();
         &run_post_actions();

&webmin_log("letsencrypt", "domain", $d->{'dom'}, $d);
Status: 
Closed (fixed)

Comments

That's a good suggestion - I will have Virtualmin run pre and post commands for SSL changes in the next release.

The problem resolved in wbm-virtual-server-5.04 (2016-07-30)

Status: Active » Fixed