Skip to content

Commit

Permalink
add code server version to fix build (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper authored Jul 28, 2022
1 parent 3144482 commit 51e8e2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qhub/template/image/scripts/install-code-server.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -xe
DEFAULT_PREFIX="${1}"; shift # path to environment yaml or lock file
CODE_SERVER_VERSION=4.5.0

mkdir -p ${DEFAULT_PREFIX}/code-server
cd ${DEFAULT_PREFIX}/code-server
Expand All @@ -15,7 +16,7 @@ if [[ ! $(sha256sum install.sh) == "${expected_sum} install.sh" ]];then
fi

mkdir /opt/tmpdir
sh ./install.sh --method standalone --prefix /opt/tmpdir
sh ./install.sh --method standalone --prefix /opt/tmpdir --version ${CODE_SERVER_VERSION}

mv /opt/tmpdir/lib/code-server-4.5.0/* ${DEFAULT_PREFIX}/code-server
mv /opt/tmpdir/lib/code-server-${CODE_SERVER_VERSION}/* ${DEFAULT_PREFIX}/code-server
rm -rf /opt/tmpdir

0 comments on commit 51e8e2c

Please sign in to comment.