diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-09-09 22:50:29 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-09-09 22:50:29 +0100 |
| commit | e7c7e2aa77fa9b90ef6a114f43510e6bdc3bec76 (patch) | |
| tree | 77a52a80074534538cd370978e0bf8c0f7baf475 | |
| parent | f1741a7faa9538e9b12ac60e0fbf6c7721a36059 (diff) | |
Prepend SysConfPrefix to config path
| -rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ import ( "git.leonardobishop.net/history/api" "git.leonardobishop.net/history/internal/config" + "git.leonardobishop.net/history/internal/constants" "git.leonardobishop.net/history/pkg/database" "git.leonardobishop.net/history/pkg/entries" "git.leonardobishop.net/history/pkg/html" @@ -22,7 +23,7 @@ func main() { func run() error { c := &config.Config{} - err := config.ReadConfig("config.yaml", c) + err := config.ReadConfig(constants.SysConfPrefix+"config.yaml", c) if err != nil { return fmt.Errorf("failed to load config: %w", err) } |
