Skip to content

Commit c36e648

Browse files
author
Quentin Perez
committed
Use SCW_SECURE_EXEC instead of exec_secure
1 parent e9ad5c8 commit c36e648

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cli/cmd_exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var cmdExec = &Command{
1616
$ scw exec myserver bash
1717
$ scw exec --gateway=myotherserver myserver bash
1818
$ scw exec myserver 'tmux a -t joe || tmux new -s joe || bash'
19-
$ exec_secure=1 scw exec myserver bash
19+
$ SCW_SECURE_EXEC=1 scw exec myserver bash
2020
$ scw exec -w $(scw start $(scw create ubuntu-trusty)) bash
2121
$ scw exec $(scw start -w $(scw create ubuntu-trusty)) bash
2222
$ scw exec myserver tmux new -d sleep 10

pkg/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func SSHExec(publicIPAddress string, privateIPAddress string, command []string,
7979
// NewSSHExecCmd computes execve compatible arguments to run a command via ssh
8080
func NewSSHExecCmd(publicIPAddress string, privateIPAddress string, allocateTTY bool, command []string, gatewayIPAddress string) *sshcommand.Command {
8181
quiet := os.Getenv("DEBUG") != "1"
82-
secureExec := os.Getenv("exec_secure") == "1"
82+
secureExec := os.Getenv("SCW_SECURE_EXEC") == "1"
8383
sshCommand := &sshcommand.Command{
8484
AllocateTTY: true,
8585
Command: command,

0 commit comments

Comments
 (0)