diff options
Diffstat (limited to 'src/migration-scripts/ipoe-server')
-rwxr-xr-x | src/migration-scripts/ipoe-server/0-to-1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/migration-scripts/ipoe-server/0-to-1 b/src/migration-scripts/ipoe-server/0-to-1 index 1ae1ad61c..0a8b4a5c7 100755 --- a/src/migration-scripts/ipoe-server/0-to-1 +++ b/src/migration-scripts/ipoe-server/0-to-1 @@ -75,6 +75,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']) |