diff options
author | Emile <hanemile@protonmail.com> | 2019-10-08 00:13:33 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-08 00:13:33 +0200 |
commit | 4746698c0674c1ae9f25b221f239d390e5eb68bc (patch) | |
tree | 666fcf5aa579a915a263ef3e7d47f6f58dd2445f | |
parent | 8cd4057f3ba0df35a101919f055ad14dfb1af731 (diff) |
corrected the cmd syntax
-rw-r--r-- | src/docker.go | 2 |
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", |