unbound: duckdb migration output tweak

This commit is contained in:
Franco Fichtner 2023-07-18 17:19:01 +02:00
parent b533835f2b
commit 0318581664

View File

@ -39,6 +39,6 @@ with DbConnection('/var/unbound/data/unbound.duckdb', read_only=True) as db:
db.connection.execute("EXPORT DATABASE '/var/cache/unbound.duckdb';")
for filename in glob.glob('/var/cache/unbound.duckdb/*'):
shutil.chown(filename, 'unbound', 'unbound')
print('database exported.')
print('Unbound DNS database exported successfully.')
else:
print('skip: no database found')
print('Unbound DNS database export not required.')