From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Kapfer To: development@lists.ipfire.org Subject: [PATCH] OpenVPN: Delete RRD dir if connection is deleted Date: Sat, 28 Mar 2020 09:32:24 +0100 Message-ID: <20200328083224.2925-1-ummeegge@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2747496665302787907==" List-Id: --===============2747496665302787907== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Erik Kapfer --- html/cgi-bin/ovpnmain.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index ce9524df7..00ecd77a0 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2513,7 +2513,7 @@ else # CCD end # Update collectd configuration and delete all RRD files of the removed co= nnection &writecollectdconf(); - system ("/usr/local/bin/openvpnctrl -drrd $confighash{$cgiparams{'KEY'}}[1= ]"); + system ('/usr/local/bin/openvpnctrl', '-drrd', $confighash{$cgiparams{'KEY= '}}[1]); =20 delete $confighash{$cgiparams{'KEY'}}; my $temp2 =3D `/usr/bin/openssl ca -gencrl -out ${General::swroot}/ovpn/cr= ls/cacrl.pem -config ${General::swroot}/ovpn/openssl/ovpn.cnf`; --=20 2.12.2 --===============2747496665302787907==--