mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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(_):
|
def subcommand_get_config(_):
|
||||||
"""Print the current configuration as JSON dictionary."""
|
"""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']):
|
if aug.match(PATHS['defaults']):
|
||||||
frontend = 'pagekite.net'
|
frontend = 'pagekite.net'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user