- 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 <[email protected]> --- 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
