appcanary / agent

The Appcanary agent
https://www.appcanary.com
GNU General Public License v3.0
47 stars 6 forks source link

Package installation shouldn't install yml if conf exists #151

Closed j0ni closed 7 years ago

j0ni commented 7 years ago

When packages are upgraded, they don't stomp on existing configurations, however with the switch to YAML config, the packager doesn't think there's a configuration and installs a new one. This has no api_key set, so the agent will start, see that there is a "good" agent.yml, load it, and fail with no api_key (or indeed, no customized configuration of any kind).

So, the package should have a check for the TOML version in the absence of the YAML version, and simply not install the default YAML file if one of those exists.

This BLOCKS release.