config.go: use a COMMENTO_ prefix

This commit is contained in:
Adhityaa 2018-06-07 14:03:17 +05:30
parent 7c75792622
commit e80617d41c

View File

@ -23,8 +23,10 @@ func parseConfig() error {
}
for key, value := range defaults {
if os.Getenv(key) == "" {
if os.Getenv("COMMENTO_" + key) == "" {
os.Setenv(key, value)
} else {
os.Setenv(key, os.Getenv("COMMENTO_" + key))
}
}