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

Function InstallScript

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

Source from the content-addressed store, hash-verified

48}
49
50func InstallScript(user, nodeIP string, script Script, skipWait bool) (int, error) {
51 exitCode, err := core.InstallScript(user, nodeIP, script)
52 if !skipWait {
53 utils.WaitForEnterToReturn(err, "Script installation completed successfully!", "Script installation failed")
54 }
55
56 return exitCode, err
57}
58
59func InstallScriptInLXC(user, nodeIP string, vmid int, script Script, skipWait bool) (int, error) {
60 exitCode, err := core.InstallScriptInLXC(user, nodeIP, vmid, script)

Callers 2

installScriptMethod · 0.70

Calls 1

WaitForEnterToReturnFunction · 0.92

Tested by 1