From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gX6cV6zkfz332s for ; Fri, 05 Jun 2026 16:40:26 +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) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gX6cR1qkpz2xQL for ; Fri, 05 Jun 2026 16:40:23 +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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4gX6cQ5gxWzF8; Fri, 05 Jun 2026 16:40:22 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1780677622; 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=ZeStPcbVN4iga8OMjG76OIhC2hBh4z6VJgjT5L+cEqI=; b=dlA4EpC5Tfn0ahy0tdYjqslrsAiZz4BoLF7KRSyX4/s14m8mPsS3HttYLCJ9qNTmdd+lUR 1Ys+bymExolE1wCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1780677622; 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=ZeStPcbVN4iga8OMjG76OIhC2hBh4z6VJgjT5L+cEqI=; b=XLuSWZGyRY2hwr/oKNwSRrVrp01DgfeZXTkTQn1XajZ8Ol+GRPSknnoWwlg4+YwH12HPmV jF1mFMGq1VVFaSArjBM4t3j2Pj5e+TwRryehso2EuvhWxW4osZhojegU3bxjD70xp31UOp OotXLtGYJ+tjzxhalaylfW+HwKxBrxJvSUzLtpYgEHmOVWe7/7TGALoc2AvyRc4GcTWR/T z6lyRacxbl9CFTbT6MN3HSy+O52T8hZGeTplxyafvTGTlIwegCeMovXsUygX+LJ+NAEfbd VViyiRY5nib8VVYc6fAOlV9KoQR53jRjwIdfyZP7TEA5MUurajAJL+5E0U/Yog== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] backup.pl: unbound entries not needed with knot in place Date: Fri, 5 Jun 2026 18:40:20 +0200 Message-ID: <20260605164020.3661242-2-adolf.belka@ipfire.org> In-Reply-To: <20260605164020.3661242-1-adolf.belka@ipfire.org> References: <20260605164020.3661242-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit - With the change from unbound to knot the unbound specific user and group no longer need to be created and any restored /etc/unbound directory can also be removed Signed-off-by: Adolf Belka --- config/backup/backup.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 417d33f40..cfd1ac40f 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -112,13 +112,8 @@ restore_backup() { -s /bin/false \ -u 52 dhcpcd - # create unbound user - groupadd -g 103 unbound - useradd -c 'unbound User' \ - -d /var/empty \ - -g unbound \ - -s /bin/false \ - -u 103 unbound + # Remove any unbound directory that is restored + rm -Rf /etc/unbound/ # Create Knot Resolver group if ! getent group knot-resolver &>/dev/null; then -- 2.54.0