Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow setting the config path through an environment variable
The config path previously could only be specified through the command line options. This made it very difficult to set a default config path without using any option. Now the environment variable can be set so the default configuration path is set to a specific place, but can be overwritten using the command line option. The primary purpose of this is so the Docker container can have a default configuration file, but not have to parse the command line options to figure out if a different configuration file has been specified while still allowing the user to only type `influxd` and have the program start correctly. This might also help #6392 as it would allow a default configuration location to be included with the package by setting an environment variable. A default search path is also provided now with checking the following paths for a config file when none is specified: * `~/.influxdb/influxdb.conf` * `/etc/influxdb/influxdb.conf`
- Loading branch information