MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / InstallScriptInLXC

Function InstallScriptInLXC

internal/ui/plugins/communityscripts/scripts.go:59–66  ·  view source on GitHub ↗
(user, nodeIP string, vmid int, script Script, skipWait bool)

Source from the content-addressed store, hash-verified

57}
58
59func InstallScriptInLXC(user, nodeIP string, vmid int, script Script, skipWait bool) (int, error) {
60 exitCode, err := core.InstallScriptInLXC(user, nodeIP, vmid, script)
61 if !skipWait {
62 utils.WaitForEnterToReturn(err, "Script installation completed successfully!", "Script installation failed")
63 }
64
65 return exitCode, err
66}
67
68func ValidateConnection(user, nodeIP string) error {
69 return core.ValidateConnection(user, nodeIP)

Callers 1

installScriptMethod · 0.70

Calls 1

WaitForEnterToReturnFunction · 0.92

Tested by

no test coverage detected