From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 3/3] update.sh: Remove code to add providers into n2n configs Date: Wed, 07 Jun 2023 16:21:50 +0200 Message-ID: <20230607142150.18407-3-adolf.belka@ipfire.org> In-Reply-To: <20230607142150.18407-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0108028890848420681==" List-Id: --===============0108028890848420681== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - This code is no longer required with the code changes in the ovpnmain.cgi p= atch in this patch set. Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- config/rootfiles/core/175/update.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/config/rootfiles/core/175/update.sh b/config/rootfiles/core/175/= update.sh index 82676bc72..5e45c819f 100644 --- a/config/rootfiles/core/175/update.sh +++ b/config/rootfiles/core/175/update.sh @@ -177,20 +177,6 @@ if [ -e /boot/pakfire-kernel-update ]; then /boot/pakfire-kernel-update ${KVER} fi =20 -## Add providers legacy default line to n2n client config files -# Check if ovpnconfig exists and is not empty -if [ -s /var/ipfire/ovpn/ovpnconfig ]; then - # Identify all n2n connections - for y in $(awk -F',' '/net/ { print $3 }' /var/ipfire/ovpn/ovpnconfig= ); do - # Add the legacy option to all N2N client conf files - if [ $(grep -c "Open VPN Client Config" /var/ipfire/ovpn/n2nconf/${y}/${y}= .conf) -eq 1 ] ; then - if [ $(grep -c "providers legacy default" /var/ipfire/ovpn/n2nconf/${y}/$= {y}.conf) -eq 0 ] ; then - echo "providers legacy default" >> /var/ipfire/ovpn/n2nconf/${y}/${y}.co= nf - fi - fi - done -fi - # This update needs a reboot... touch /var/run/need_reboot =20 --=20 2.40.1 --===============0108028890848420681==--