1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-05 00:50:24 +08:00

AUTH-2712 mac package build script and better config file handling when started as a service

This commit is contained in:
Dalton
2020-06-18 16:55:40 -05:00
parent b46acd7f63
commit 0c65daaa7d
9 changed files with 171 additions and 16 deletions

View File

@@ -182,7 +182,7 @@ func handleServiceMode(shutdownC chan struct{}) error {
return err
}
configPath := config.FindDefaultConfigPath()
configPath := config.FindOrCreateConfigPath()
configManager, err := config.NewFileManager(f, configPath, logger)
if err != nil {
logger.Errorf("Cannot setup config file for monitoring: %s", err)