added p2prc script

This commit is contained in:
2021-07-30 14:45:09 +04:00
parent b5b38bda46
commit 896bd96ffd
5 changed files with 108 additions and 33 deletions

View File

@@ -31,7 +31,7 @@ func (b *Barrier)CreateBarrierSession() error {
return err
}
cmd := exec.Command("sudo","-u",configResp.SystemUsername,"barrier.barrierc","-f","--debug", "DEBUG" ,"--log", "/tmp/barrier.log",b.IPAddress)
cmd := exec.Command("sudo","-u",configResp.SystemUsername,"barrierc","-f","--debug", "DEBUG" ,"--log", "/tmp/barrier.log",b.IPAddress)
// USE THE FOLLOWING TO DEBUG
//cmdReader, err := cmd.StdoutPipe()
@@ -81,7 +81,7 @@ func (b *Barrier)DeleteBarrierSession() error {
// DetectBarrier This function ensures that the server has barrier client installed
func DetectBarrier() error {
_, err := exec.LookPath("barrier.barrierc")
_, err := exec.LookPath("barrierc")
if err != nil {
return err
}