This commit is contained in:
Michael (Parker) Parker
2024-03-17 22:34:55 +01:00
committed by GitHub
2 changed files with 30 additions and 0 deletions

View File

@@ -29,6 +29,18 @@ func (s *Server) Mounts() []environment.Mount {
},
}
// Mount passwd file if set to true
if config.Get().System.User.Passwd {
passwdMount := environment.Mount{
Default: true,
Target: "/etc/passwd",
Source: config.Get().System.User.PasswdFile,
ReadOnly: true,
}
m = append(m, passwdMount)
}
// Also include any of this server's custom mounts when returning them.
return append(m, s.customMounts()...)
}