public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH] backup.pl: unbound entries not needed with knot in place
Date: Fri,  5 Jun 2026 18:40:20 +0200	[thread overview]
Message-ID: <20260605164020.3661242-2-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20260605164020.3661242-1-adolf.belka@ipfire.org>

- 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 <adolf.belka@ipfire.org>
---
 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



  reply	other threads:[~2026-06-05 16:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05 16:40 [PATCH] backup.pl: Fix issue with University of Toulouse change Adolf Belka
2026-06-05 16:40 ` Adolf Belka [this message]
     [not found] ` <a8f638c6-ed7c-4972-b5a5-dff3089182fe@ipfire.org>
2026-06-05 17:37   ` Adolf Belka

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=20260605164020.3661242-2-adolf.belka@ipfire.org \
    --to=adolf.belka@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