From patchwork Fri Dec 1 03:22:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Kapfer X-Patchwork-Id: 7374 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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4ShJKZ5XzTz3wtp for ; Fri, 1 Dec 2023 03:22:58 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4ShJKZ2HQRz1Dd; Fri, 1 Dec 2023 03:22:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4ShJKZ1R9qz30RM; Fri, 1 Dec 2023 03:22:58 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4ShJKW1GyFz2xCX for ; Fri, 1 Dec 2023 03:22:55 +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 (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4ShJKV3fTQz10N; Fri, 1 Dec 2023 03:22:54 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1701400974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YnxNG9K0Hslz8fuzymzBN1N6D/7EKoAbFLZDGzM6YbE=; b=/V6Pxh7AXRFTnaWok68Qb+UUUGxUBNAfOZ0HTqR71NZhBxbLf/Eioz0qgpDrBuwuXd56F7 qxYBKiFJyszps3Cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1701400974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YnxNG9K0Hslz8fuzymzBN1N6D/7EKoAbFLZDGzM6YbE=; b=h7ueiR3ny8Q6xv5WywX7iOBgijfftLa18DjI7XN2EYNxTOqxQMGA7/nxhV0s6kEDLEAdzr LYBjLiiaPQeyoLofSdaszr2uPLvEHyi10MCIIfNnfoYmD3DiZ13oTTrJtw0lrHCYZP3AL+ 3ExYx56b3+MMLTZTf6D/ktSaDVIUeJGlAXGXeNflVUqnY3hyKQb3nHFyDVw8HcMmDMIyAl T2KuKr8WPg+iqSMYmzfl4Q3JoKkH5dKv4xwUnjHQcIQ5L0rqbk5PzuPZ90LNynO0eEdjPJ L9QfHYGt78LQNWH0nIPjqlxd/Q6YQQhWVmTO4C2Ao50Oca8G2JUhsGn8CZvEbA== 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, 1 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> References: <20231130075617.3961868-2-erik.kapfer@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: 55Q55W5RD55JZDG4DUAS77KFONZHF7WH X-Message-ID-Hash: 55Q55W5RD55JZDG4DUAS77KFONZHF7WH X-MailFrom: erik.kapfer@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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=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"