backup.pl: unbound entries not needed with knot in place
Commit Message
- 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(-)
@@ -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