read system-wide configuration at '/etc/lfrc'

This commit is contained in:
Gokcehan committed 2018-06-28 19:44:50 +03:00
1 parent 6c319316e2
commit 638d67c0e4
3 files changed
+13 -8

No files matched your search

+4 -2
View File
@@ -32,8 +32,10 @@ func run() {
app := newApp()
if _, err := os.Stat(gConfigPath); !os.IsNotExist(err) {
app.readFile(gConfigPath)
for _, path := range gConfigPaths {
if _, err := os.Stat(path); !os.IsNotExist(err) {
app.readFile(path)
}
}
app.loop()