(containerEnv: NodeJS.ProcessEnv, passwdUser: PasswdUser | undefined)
| 294 | } |
| 295 | |
| 296 | async function getUserShell(containerEnv: NodeJS.ProcessEnv, passwdUser: PasswdUser | undefined) { |
| 297 | return containerEnv.SHELL || (passwdUser && passwdUser.shell) || '/bin/sh'; |
| 298 | } |
| 299 | |
| 300 | export async function getUserFromPasswdDB(shellServer: ShellServer, userNameOrId: string) { |
| 301 | const { stdout } = await shellServer.exec(getEntPasswdShellCommand(userNameOrId), { logOutput: false }); |
no outgoing calls
no test coverage detected