mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
d4c6e5b048
commit
79d55d8d34
@ -133,8 +133,6 @@ export const UserNav = () => {
|
|||||||
Servers
|
Servers
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</DropdownMenuGroup>
|
</DropdownMenuGroup>
|
||||||
|
@ -34,7 +34,7 @@ export const slugify = (text: string | undefined) => {
|
|||||||
|
|
||||||
export const serverSetup = async (
|
export const serverSetup = async (
|
||||||
serverId: string,
|
serverId: string,
|
||||||
onData?: (data: any) => void
|
onData?: (data: any) => void,
|
||||||
) => {
|
) => {
|
||||||
const server = await findServerById(serverId);
|
const server = await findServerById(serverId);
|
||||||
const { LOGS_PATH } = paths();
|
const { LOGS_PATH } = paths();
|
||||||
@ -181,7 +181,7 @@ ${installRailpack()}
|
|||||||
|
|
||||||
const installRequirements = async (
|
const installRequirements = async (
|
||||||
serverId: string,
|
serverId: string,
|
||||||
onData?: (data: any) => void
|
onData?: (data: any) => void,
|
||||||
) => {
|
) => {
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
const server = await findServerById(serverId);
|
const server = await findServerById(serverId);
|
||||||
@ -217,12 +217,12 @@ const installRequirements = async (
|
|||||||
client.end();
|
client.end();
|
||||||
if (err.level === "client-authentication") {
|
if (err.level === "client-authentication") {
|
||||||
onData?.(
|
onData?.(
|
||||||
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`
|
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`,
|
||||||
);
|
);
|
||||||
reject(
|
reject(
|
||||||
new Error(
|
new Error(
|
||||||
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`
|
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`,
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
onData?.(`SSH connection error: ${err.message} ${err.level}`);
|
onData?.(`SSH connection error: ${err.message} ${err.level}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user