Commit graph

4 commits

Author SHA1 Message Date
Oliver Jowett 1cdfe8db27 Rearrange validation so that the user only ever sees errors
*after* providing input.

In particular if the existing config does not validate then we
should just ensure that the problematic question is displayed
without a confusing error message beforehand; the error should
only appear if the newly entered response doesn't validate.
2014-12-10 21:20:31 +00:00
Oliver Jowett 55ecde9d53 Add input validation to most of the config questions.
> Some people, when confronted with a problem, think "I know, I'll use regular expressions."
> Now they have two problems.

Dongle "device index" actually accepts serial numbers too, document that.
2014-12-10 20:26:51 +00:00
Oliver Jowett 660eb08c66 Ask about json interval before json dir. Skip the dir question if
the interval is disabled, it makes more sense that way.
2014-12-10 02:02:19 +00:00
Oliver Jowett 125158b30a Big rearrangement to add debconf support.
/etc/default/dump1090-mutability is now generated in postinst,
if it doesn't exist, from a template in /usr/share/dump1090-mutability.
Subsequently, the config file is updated in place if debconf-driven
changes are made.

Static HTML/javascript have moved to a "html" subdir to avoid exposing
the template via the webserver.
2014-12-09 20:36:24 +00:00