From patchwork Wed Jun 3 14:41:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3153 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49cWnN2bv4z43s4 for ; Wed, 3 Jun 2020 14:41:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49cWnJ6b5Jz2sr; Wed, 3 Jun 2020 14:41:23 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49cWnH1g86z302m; Wed, 3 Jun 2020 14:41:23 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49cWnG0WPbz2xGF for ; Wed, 3 Jun 2020 14:41:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49cWnF0swZz1TD; Wed, 3 Jun 2020 14:41:21 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1591195281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5ySLIGBRiD9nrO/JOkbBXpv+HSEZuatjuezqYJXl4c0=; b=9+qDO4tJZOR9IUP8TkUfeE0vUrk1HkGVKkxMk40LCp8IIJGNfbxnIY7+n8JaHkcS7xSOdE 2NTXlAOv5yDTvGBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1591195281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5ySLIGBRiD9nrO/JOkbBXpv+HSEZuatjuezqYJXl4c0=; b=riX+oWrfgPcjK8aIdvOmFkb3sNT4flHpYelIlj/8CGHu/E3YC/XmBSRKJ1d3gCu2ofqTDX ZfzIFh4VFULuigqK7fwMVgmX/7iPRcw8AI8IKZkO1eyn2ApFrocMVfHo8FzAhMbTiAMFOe zcf4DW+g4tcU0EnEpJ4s9SEC+PNNFulCiOW1R04Xlc4NfRsigOZVS6q0MdQ3q/vrsrVznD lIiZBsxKHAbdfjYaVpB2eJ9XOplPznVwXTd2t1xKILXSoziPo888lHFKgdjPX0QUkd2K04 xQ0zlpw10GUwIAKhfLs+I7iKQ7tkUBZPQmtCv/JlkHwJA6a9aM7CzGy8/9GBWA== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] core145: Update OpenVPN server configuration only when necessary Date: Wed, 3 Jun 2020 14:41:12 +0000 Message-Id: <20200603144112.9742-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 # Enable OpenVPN metrics collection -cat <> /var/ipfire/ovpn/server.conf +grep -q "^client-connect" /var/ipfire/ovpn/server.conf || cat <> /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"