Skip to content

Commit

Permalink
Merge branch 'master' into patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored Aug 23, 2021
2 parents 99aa8df + 228012c commit 669b0af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/control/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.16-bullseye


# Use mirrors for poor network...
Expand Down
3 changes: 2 additions & 1 deletion docker/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Based on the deprecated `https://github.com/tutumcloud/tutum-debian`
FROM golang:1.16
FROM golang:1.16-bullseye

# Use mirrors for poor network...
#RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
Expand All @@ -15,6 +15,7 @@ RUN apt-get update && \
openssh-server \
openjdk-11-jre-headless \
sudo vim \
iproute2 \
&& \
mkdir -p /var/run/sshd && \
sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && \
Expand Down
2 changes: 1 addition & 1 deletion pkg/cluster/executor/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (l *Local) Execute(ctx context.Context, cmd string, sudo bool, timeout ...t
}

// set a basic PATH in case it's empty on login
cmd = fmt.Sprintf("PATH=$PATH:/usr/bin:/usr/sbin %s", cmd)
cmd = fmt.Sprintf("PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin %s", cmd)

if l.Locale != "" {
cmd = fmt.Sprintf("export LANG=%s; %s", l.Locale, cmd)
Expand Down
4 changes: 2 additions & 2 deletions pkg/cluster/executor/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (e *EasySSHExecutor) Execute(ctx context.Context, cmd string, sudo bool, ti
}

// set a basic PATH in case it's empty on login
cmd = fmt.Sprintf("PATH=$PATH:/usr/bin:/usr/sbin %s", cmd)
cmd = fmt.Sprintf("PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin %s", cmd)

if e.Locale != "" {
cmd = fmt.Sprintf("export LANG=%s; %s", e.Locale, cmd)
Expand Down Expand Up @@ -280,7 +280,7 @@ func (e *NativeSSHExecutor) Execute(ctx context.Context, cmd string, sudo bool,
}

// set a basic PATH in case it's empty on login
cmd = fmt.Sprintf("PATH=$PATH:/usr/bin:/usr/sbin %s", cmd)
cmd = fmt.Sprintf("PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin %s", cmd)

if e.Locale != "" {
cmd = fmt.Sprintf("export LANG=%s; %s", e.Locale, cmd)
Expand Down

0 comments on commit 669b0af

Please sign in to comment.