File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ FROM system
208
208
209
209
RUN apt-get install -y nomacs vlc
210
210
211
- ENV CODE_SERVER_VERSION 3.11.0
211
+ ENV CODE_SERVER_VERSION 3.10.2
212
212
RUN cd /tmp \
213
213
&& curl -fOL https://github.com/cdr/code-server/releases/download/v${CODE_SERVER_VERSION}/code-server_${CODE_SERVER_VERSION}_amd64.deb \
214
214
&& dpkg -i code-server_${CODE_SERVER_VERSION}_amd64.deb
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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
4
8
5
9
/startup.sh
You can’t perform that action at this time.
0 commit comments