Skip to content

Commit

Permalink
fix(kasmVNC): fix debian installation and improve logging (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
djarbz authored Oct 21, 2024
1 parent 20d97a2 commit 7992d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kasmvnc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and
```tf
module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder"
version = "1.0.21"
version = "1.0.22"
agent_id = coder_agent.example.id
desktop_environment = "xfce"
}
Expand Down
6 changes: 4 additions & 2 deletions kasmvnc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ download_file() {
if command -v wget &> /dev/null; then
wget $url -O $output
elif command -v curl &> /dev/null; then
curl -L $url -o $output
curl -fsSL $url -o $output
elif command -v busybox &> /dev/null; then
busybox wget -O $output $url
else
Expand All @@ -32,7 +32,8 @@ download_file() {
install_deb() {
local url=$1
download_file $url /tmp/kasmvncserver.deb
sudo apt-get install --yes --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes -qq --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
sudo adduser $USER ssl-cert
rm /tmp/kasmvncserver.deb
}
Expand Down Expand Up @@ -103,6 +104,7 @@ fi

# Check if vncserver is installed, and install if not
if ! check_installed; then
echo "Installing KASM version: ${VERSION}"
case $distro in
ubuntu | debian | kali)
case $version in
Expand Down

0 comments on commit 7992d9d

Please sign in to comment.