]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
backup.pl: unbound entries not needed with knot in place
authorAdolf Belka <adolf.belka@ipfire.org>
Fri, 5 Jun 2026 16:40:20 +0000 (18:40 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jun 2026 09:33:58 +0000 (09:33 +0000)
- 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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/backup.pl

index 417d33f40b82daee65acfaa302a6be8bc01933b3..cfd1ac40f5776a4535bbf72c290b066264dd8bfe 100644 (file)
@@ -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