Skip to content

Commit 3931f9c

Browse files
committed
Downgrade code-server to 3.10.2 because of chrome pwa bug coder/code-server#3834
1 parent 9dda434 commit 3931f9c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ FROM system
208208

209209
RUN apt-get install -y nomacs vlc
210210

211-
ENV CODE_SERVER_VERSION 3.11.0
211+
ENV CODE_SERVER_VERSION 3.10.2
212212
RUN cd /tmp \
213213
&& curl -fOL https://github.com/cdr/code-server/releases/download/v${CODE_SERVER_VERSION}/code-server_${CODE_SERVER_VERSION}_amd64.deb \
214214
&& dpkg -i code-server_${CODE_SERVER_VERSION}_amd64.deb

docker/rootfs/init.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3-
export HASHED_PASSWORD=$(echo -n "$PASSWORD" | npx argon2-cli -e)
3+
if dpkg --compare-versions "$CODE_SERVER_VERSION" lt "3.11.0"; then
4+
export HASHED_PASSWORD=$(printf "$PASSWORD" | sha256sum | cut -d' ' -f1)
5+
else
6+
export HASHED_PASSWORD=$(echo -n "$PASSWORD" | npx argon2-cli -e)
7+
fi
48

59
/startup.sh

0 commit comments

Comments
 (0)