public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Erik Kapfer <erik.kapfer@ipfire.org>
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	[thread overview]
Message-ID: <20231201032248.92817-1-erik.kapfer@ipfire.org> (raw)
In-Reply-To: <20231130075617.3961868-2-erik.kapfer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

Signed-off-by: Erik Kapfer <erik.kapfer(a)ipfire.org>
---
 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=on" /var/ipfire/vpn/settings; then
 	/etc/rc.d/init.d/ipsec start
 fi
 
+# 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="xxxKVERxxx"
-- 
2.42.0


           reply	other threads:[~2023-12-01  3:22 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20231130075617.3961868-2-erik.kapfer@ipfire.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231201032248.92817-1-erik.kapfer@ipfire.org \
    --to=erik.kapfer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox