From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] core145: Update OpenVPN server configuration only when necessary Date: Wed, 03 Jun 2020 14:41:12 +0000 Message-ID: <20200603144112.9742-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0955479211729660947==" List-Id: --===============0955479211729660947== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- config/rootfiles/core/145/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rootfiles/core/145/update.sh b/config/rootfiles/core/145/= update.sh index 893539f30..38653b730 100644 --- a/config/rootfiles/core/145/update.sh +++ b/config/rootfiles/core/145/update.sh @@ -78,7 +78,7 @@ for package in perl-DBI perl-DBD-SQLite; do done =20 # Enable OpenVPN metrics collection -cat <> /var/ipfire/ovpn/server.conf +grep -q "^client-connect" /var/ipfire/ovpn/server.conf ||=C2=A0cat <> = /var/ipfire/ovpn/server.conf # Log clients connecting/disconnecting client-connect "/usr/sbin/openvpn-metrics client-connect" client-disconnect "/usr/sbin/openvpn-metrics client-disconnect" --=20 2.20.1 --===============0955479211729660947==--