From 0d13cb76bd7a56e36d0790e6296e54a7b4a502d1 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Tue, 21 Jan 2020 15:22:15 +0100 Subject: [PATCH] utils/upgrade: minor changes to upgrade script --- utils/upgrade/upgrade-4-to-5.lua.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/upgrade/upgrade-4-to-5.lua.in b/utils/upgrade/upgrade-4-to-5.lua.in index 212e0e10c..6ddc5b75f 100644 --- a/utils/upgrade/upgrade-4-to-5.lua.in +++ b/utils/upgrade/upgrade-4-to-5.lua.in @@ -9,17 +9,17 @@ local sockets = { -- globals addr_port = {} -outfile = io.open(out, 'a') +outfile = io.open(out, 'w') if outfile == nil then - -- this is technicaly an error, but upgrade script should fail in scriptlets + -- this is technicaly an error, but upgrade script shouldn't fail in scriptlets os.exit(0) -- make no changes and exit end outfile:write("-- Suggested network interface configuration\n") -outfile:write("-- Please verify these settings match your desired configuration\n") -outfile:write("-- and add them to @etc_dir@/kresd.conf\n") outfile:write("-- See https://knot-resolver.readthedocs.io/en/stable/upgrading.html\n\n") +outfile:write("-- Please remove any unused or undesired interfaces and add them to\n") +outfile:write("-- @etc_dir@/kresd.conf\n\n") local function write_net_listen(addr, port, kind) -- make sure (addr, port) combination is unique -- 2.47.2