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

Function InstallScript

internal/plugins/communityscripts/scripts.go:820–829  ·  view source on GitHub ↗

InstallScript installs a script on a Proxmox node via SSH. Returns the remote exit code (0 on success) and any error encountered.

(user, nodeIP string, script Script)

Source from the content-addressed store, hash-verified

818// InstallScript installs a script on a Proxmox node via SSH.
819// Returns the remote exit code (0 on success) and any error encountered.
820func InstallScript(user, nodeIP string, script Script) (int, error) {
821 return InstallScriptWithOptions(context.Background(), InstallOptions{
822 User: user,
823 Host: nodeIP,
824 Script: script,
825 Stdin: os.Stdin,
826 Stdout: os.Stdout,
827 Stderr: os.Stderr,
828 })
829}
830
831// InstallScriptWithOptions installs a script on a Proxmox node via SSH.
832func InstallScriptWithOptions(ctx context.Context, opts InstallOptions) (int, error) {

Callers

nothing calls this directly

Calls 1

InstallScriptWithOptionsFunction · 0.85

Tested by

no test coverage detected