From ea161d0084a7b9a5946ee208a3e10650b2cd59aa Mon Sep 17 00:00:00 2001 From: Zhenpeng Ge Date: Thu, 24 Oct 2024 07:57:35 +0800 Subject: [PATCH] fix code server --- ubuntu-desktop/docker_config/install_code_server.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubuntu-desktop/docker_config/install_code_server.sh b/ubuntu-desktop/docker_config/install_code_server.sh index d5c4022..2c4d12e 100755 --- a/ubuntu-desktop/docker_config/install_code_server.sh +++ b/ubuntu-desktop/docker_config/install_code_server.sh @@ -1,6 +1,10 @@ #!/bin/bash version=4.93.1 arch=$(dpkg --print-architecture) +codename=$(lsb_release --short --codename) +if [[ $codename == 'bionic' ]]; then + version=4.16.1 +fi curl -fSL "https://github.com/coder/code-server/releases/download/v${version}/code-server_${version}_${arch}.deb" -o code-server.deb dpkg -i ./code-server.deb rm code-server.deb