mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
feat: move terminal settings, look and ssh tools into ssh-terminal plugin
This commit is contained in:
1 parent
ffa872ebd3
commit
d9bba10612
242 files changed
+25071
-7207
No files matched your search
@@ -129,15 +129,10 @@ async function resolveManagerHost(
|
||||
if (!access.hasAccess) throw new AccessDeniedError();
|
||||
const host = await ctx.ssh.resolveHost(hostId);
|
||||
if (!host) throw new AccessDeniedError("Host not found");
|
||||
const terminalConfig = host.terminalConfig as
|
||||
{ sudoPassword?: string } | undefined;
|
||||
return {
|
||||
id: hostId,
|
||||
userId: String(host.userId ?? ""),
|
||||
sudoPassword:
|
||||
(host.sudoPassword as string | undefined) ||
|
||||
terminalConfig?.sudoPassword ||
|
||||
undefined,
|
||||
sudoPassword: (host.sudoPassword as string | undefined) || undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user