Skip to content

Commit

Permalink
Added support for CentOS Stream 8 and fix issue with root installatio…
Browse files Browse the repository at this point in the history
…n for code-server
  • Loading branch information
rioastamal committed Oct 18, 2023
1 parent 03c4d42 commit f49c0b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ detect_os() {
grep 'PRETTY_NAME="Amazon Linux 2"' /etc/os-release >/dev/null && echo 'amazon_linux_2'
grep 'PRETTY_NAME="Amazon Linux 2023"' /etc/os-release >/dev/null && echo 'amazon_linux_2023'
grep 'PRETTY_NAME="CentOS Stream 9"' /etc/os-release >/dev/null && echo 'centos_9'
grep 'PRETTY_NAME="CentOS Stream 8"' /etc/os-release >/dev/null && echo 'centos_8'
grep 'PRETTY_NAME="CentOS Linux 7 (Core)"' /etc/os-release >/dev/null && echo 'centos_7'
grep 'VERSION_CODENAME=jammy' /etc/os-release >/dev/null && echo 'ubuntu_22_04'
grep 'VERSION_CODENAME=focal' /etc/os-release >/dev/null && echo 'ubuntu_20_04'
Expand Down Expand Up @@ -158,6 +159,7 @@ install_docker() {
[ "$( detect_os )" = "debian_11" ] && install_docker_debian
[ "$( detect_os )" = "debian_10" ] && install_docker_debian
[ "$( detect_os )" = "centos_9" ] && install_docker_centos
[ "$( detect_os )" = "centos_8" ] && install_docker_centos
[ "$( detect_os )" = "centos_7" ] && install_docker_centos
[ "$( detect_os )" = "rhel_9" ] && install_docker_centos
[ "$( detect_os )" = "amazon_linux_2023" ] && install_docker_amazon_linux
Expand Down Expand Up @@ -320,6 +322,7 @@ cert: false
-v "$HOME/vscode-home:/home/coder" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
-e "HOME=/home/coder" \
--restart unless-stopped \
-d $CODE_SERVER_IMAGE:$CODE_SERVER_VERSION

Expand Down

0 comments on commit f49c0b1

Please sign in to comment.