From e7c7e2aa77fa9b90ef6a114f43510e6bdc3bec76 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Tue, 9 Sep 2025 22:50:29 +0100 Subject: Prepend SysConfPrefix to config path --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index e337b0e..556fd35 100644 --- a/main.go +++ b/main.go @@ -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) } -- cgit v1.2.3-70-g09d2