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 <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-03-12 16:21:10 -07:00 committed by Veiko Aasa
parent 35732f6ca7
commit c1e6787587
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -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: