Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit a529966

Browse files
teddy-codesNathan Potter
authored and
Nathan Potter
committed
Remove -R option when running chown
1 parent d8a2de9 commit a529966

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.sail/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ SHELL ["/bin/bash", "-c"]
33
RUN sudo apt-get update && \
44
sudo apt-get install -y htop
55
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash && \
6-
. ~/.nvm/nvm.sh \
7-
&& nvm install node
6+
. ~/.nvm/nvm.sh \
7+
&& nvm install node
88

99
LABEL project_root "~/go/src/go.coder.com"
1010

runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (r *runner) constructCommand(projectDir string) string {
154154
cd %v
155155
# This is necessary in case the .vscode directory wasn't created inside the container, as mounting to the host
156156
# extension dir will create it as root.
157-
sudo chown -R user:user ~/.vscode
157+
sudo chown user:user ~/.vscode
158158
code-server --host %v --port %v \
159159
--data-dir ~/.config/Code --extensions-dir %v --extra-extensions-dir ~/.vscode/extensions --allow-http --no-auth 2>&1 | tee %v
160160
`, projectDir, containerAddr, containerPort, hostExtensionsDir, containerLogPath)

0 commit comments

Comments
 (0)