From c6be82bcf91fc4b6e61d9df40213e80367addbd8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 3 Aug 2025 20:46:41 +0900 Subject: container/path: fhs path constants This increases readability since this can help disambiguate absolute paths from similarly named path segments. Signed-off-by: Ophestra --- cmd/hpkg/paths.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/hpkg/paths.go') diff --git a/cmd/hpkg/paths.go b/cmd/hpkg/paths.go index 11715fb2..b7cc926a 100644 --- a/cmd/hpkg/paths.go +++ b/cmd/hpkg/paths.go @@ -8,6 +8,7 @@ import ( "strconv" "sync/atomic" + "hakurei.app/container" "hakurei.app/hst" "hakurei.app/internal/hlog" ) @@ -21,7 +22,7 @@ func init() { if p, ok := os.LookupEnv("HAKUREI_DATA_HOME"); ok { dataHome = p } else { - dataHome = "/var/lib/hakurei/" + strconv.Itoa(os.Getuid()) + dataHome = container.FHSVarLib + "hakurei/" + strconv.Itoa(os.Getuid()) } } -- cgit v1.3.1