ENV vars to uppercase
This commit is contained in:
parent
eddc32a157
commit
2089963e9e
1 changed files with 6 additions and 6 deletions
|
@ -82,12 +82,12 @@ func defaults() Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (config *Config) overrideWithEnv() {
|
func (config *Config) overrideWithEnv() {
|
||||||
username := os.Getenv("ts3_name")
|
username := os.Getenv("TS3_NAME")
|
||||||
password := os.Getenv("ts3_pw")
|
password := os.Getenv("TS3_PW")
|
||||||
tsIP := os.Getenv("ts3_ip")
|
tsIP := os.Getenv("TS3_IP")
|
||||||
tsPort, _ := strconv.Atoi(os.Getenv("ts3_port"))
|
tsPort, _ := strconv.Atoi(os.Getenv("TS3_PORT"))
|
||||||
tsQuery, _ := strconv.Atoi(os.Getenv("ts3_query"))
|
tsQuery, _ := strconv.Atoi(os.Getenv("TS3_QUERY"))
|
||||||
webPort, _ := strconv.Atoi(os.Getenv("web_port"))
|
webPort, _ := strconv.Atoi(os.Getenv("WEB_PORT"))
|
||||||
|
|
||||||
if username != "" {
|
if username != "" {
|
||||||
config.User.Name = username
|
config.User.Name = username
|
||||||
|
|
Loading…
Reference in a new issue