(user, nodeIP string, script Script, skipWait bool)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 59 | func InstallScriptInLXC(user, nodeIP string, vmid int, script Script, skipWait bool) (int, error) { |
| 60 | exitCode, err := core.InstallScriptInLXC(user, nodeIP, vmid, script) |