about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-08 00:13:33 +0200
committerEmile <hanemile@protonmail.com>2019-10-08 00:13:33 +0200
commit4746698c0674c1ae9f25b221f239d390e5eb68bc (patch)
tree666fcf5aa579a915a263ef3e7d47f6f58dd2445f
parent8cd4057f3ba0df35a101919f055ad14dfb1af731 (diff)
corrected the cmd syntax
-rw-r--r--src/docker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docker.go b/src/docker.go
index d7f4ba9..12f3b54 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -51,7 +51,7 @@ func spawnCompanion(username string, accesscode string) {
 
 	Config := &container.Config{
 		Image: "circus-companion:latest",
-		Cmd:   []string{fmt.Sprintf("-username %s -accesscode %s -sessionSalt %s -vpnRemoteAddress %s -vpnRemotePort %s", username, accesscode, sessionSalt, vpnRemoteAddress, vpnRemotePort)},
+		Shell: []string{"/workdir/register", "-username", username, "-accesscode", accesscode, "sessionSalt", sessionSalt, "-vpnRemoteAddress", vpnRemoteAddress, "-vpnRemotePort", vpnRemotePort},
 		// Container labels used by traefik
 		Labels: map[string]string{
 			"traefik.enable": "true",