From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Kapfer To: development@lists.ipfire.org Subject: [PATCH v2] update.sh: If 'ExitNode' is in usage, it will be changed to 'ExitNodes' Date: Fri, 01 Dec 2023 04:22:27 +0100 Message-ID: <20231201032248.92817-1-erik.kapfer@ipfire.org> In-Reply-To: <20231130075617.3961868-2-erik.kapfer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2083782535937854786==" List-Id: --===============2083782535937854786== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Erik Kapfer --- config/rootfiles/core/182/update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/rootfiles/core/182/update.sh b/config/rootfiles/core/182/= update.sh index 4416e73f4..47a9be230 100644 --- a/config/rootfiles/core/182/update.sh +++ b/config/rootfiles/core/182/update.sh @@ -91,6 +91,14 @@ if grep -q "ENABLED=3Don" /var/ipfire/vpn/settings; then /etc/rc.d/init.d/ipsec start fi =20 +# Change deprecated option in tor configuration file if in usage +if pgrep tor >/dev/null; then + sed -i 's/ExitNode /ExitNodes /g' /var/ipfire/tor/torrc + /usr/local/bin/torctrl restart >/dev/null +else + sed -i 's/ExitNode /ExitNodes /g' /var/ipfire/tor/torrc +fi + # Rebuild initial ramdisks dracut --regenerate-all --force KVER=3D"xxxKVERxxx" --=20 2.42.0 --===============2083782535937854786==--