diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 21:29:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 21:29:16 +0900 |
| commit | 5d18af00077ae6ba8ef686d1fd93d888f69681b2 (patch) | |
| tree | eff32422fe3ef095c6a915ccb41c2a10a06990f7 /internal/app/spaccount.go | |
| parent | 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (diff) | |
container/fhs: move pathname constants
This allows referencing FHS pathnames without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spaccount.go')
| -rw-r--r-- | internal/app/spaccount.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/app/spaccount.go b/internal/app/spaccount.go index 71c7d7f3..0927bcc3 100644 --- a/internal/app/spaccount.go +++ b/internal/app/spaccount.go @@ -4,7 +4,7 @@ import ( "fmt" "syscall" - "hakurei.app/container" + "hakurei.app/container/fhs" "hakurei.app/hst" ) @@ -34,14 +34,14 @@ func (s spAccountOp) toContainer(state *outcomeStateParams) error { state.env["SHELL"] = state.Container.Shell.String() state.params. - Place(container.AbsFHSEtc.Append("passwd"), + Place(fhs.AbsEtc.Append("passwd"), []byte(state.Container.Username+":x:"+ state.mapuid.String()+":"+ state.mapgid.String()+ ":Hakurei:"+ state.Container.Home.String()+":"+ state.Container.Shell.String()+"\n")). - Place(container.AbsFHSEtc.Append("group"), + Place(fhs.AbsEtc.Append("group"), []byte("hakurei:x:"+state.mapgid.String()+":\n")) return nil |
