From c08ea8340ec5138b5f7a696eae09ff77a734350e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 18 Apr 2020 22:38:50 +0200 Subject: {pppoe,ipoe}-server: rename RADIUS key --- src/migration-scripts/pppoe-server/2-to-3 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/migration-scripts/pppoe-server/2-to-3') diff --git a/src/migration-scripts/pppoe-server/2-to-3 b/src/migration-scripts/pppoe-server/2-to-3 index d5d88d373..28b1e33e4 100755 --- a/src/migration-scripts/pppoe-server/2-to-3 +++ b/src/migration-scripts/pppoe-server/2-to-3 @@ -84,6 +84,10 @@ else: old_base = radius_server + [server] config.copy(old_base, new_base + [server]) + # migrate key + if config.exists(new_base + [server, 'secret']): + config.rename(new_base + [server, 'secret'], 'key') + # remove old req-limit node if config.exists(new_base + [server, 'req-limit']): config.delete(new_base + [server, 'req-limit']) -- cgit v1.2.3