Merge e5c8f50184 into f1c5bbd42d
This commit is contained in:
@@ -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()...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user