From c1e6787587f5b8410036eb3da5cebccfac7f2b7c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 12 Mar 2020 16:21:10 -0700 Subject: [PATCH] pagekite: Ensure transitioning for from old code When app is disabled with older code, 'abort_not_configured' is present in the configuration file. Wipe it when re-enabling with newer code. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- actions/pagekite | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actions/pagekite b/actions/pagekite index a32f4af66..ae170d2e4 100755 --- a/actions/pagekite +++ b/actions/pagekite @@ -61,6 +61,10 @@ def parse_arguments(): def subcommand_get_config(_): """Print the current configuration as JSON dictionary.""" + if aug.match(PATHS['abort_not_configured']): + aug.remove(PATHS['abort_not_configured']) + aug.save() + if aug.match(PATHS['defaults']): frontend = 'pagekite.net' else: