backup.pl: unbound entries not needed with knot in place

Message ID 20260605164020.3661242-2-adolf.belka@ipfire.org
State New
Headers
Series backup.pl: unbound entries not needed with knot in place |

Commit Message

Adolf Belka 5 Jun 2026, 4:40 p.m. UTC
- 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(-)
  

Patch

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