mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
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:
parent
35732f6ca7
commit
c1e6787587
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user