pass client id as id variable for shell commands

Mentioned in #36.
This commit is contained in:
Gokcehan 2016-11-06 18:19:48 +03:00
parent ec4cb78535
commit 4891a87d11

3
app.go
View File

@ -6,6 +6,7 @@ import (
"net"
"os"
"os/exec"
"strconv"
"strings"
)
@ -116,6 +117,8 @@ func (app *App) exportVars() {
} else {
os.Setenv("fx", envFiles)
}
os.Setenv("id", strconv.Itoa(gClientId))
}
// This function is used to run a command in shell. Following modes are used: