aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hpkg/paths.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-03 20:46:41 +0900
committerOphestra <cat@gensokyo.uk>2025-08-03 21:16:45 +0900
commitc6be82bcf91fc4b6e61d9df40213e80367addbd8 (patch)
treeee245cf214ff845f0d8a3eac0cc1a6064107112d /cmd/hpkg/paths.go
parent38245559dca0833dc078b982d59490eee53e168c (diff)
container/path: fhs path constants
This increases readability since this can help disambiguate absolute paths from similarly named path segments. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/hpkg/paths.go')
-rw-r--r--cmd/hpkg/paths.go3
1 files changed, 2 insertions, 1 deletions
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())
}
}