Skip to content

Commit

Permalink
Require sudo to install only
Browse files Browse the repository at this point in the history
  • Loading branch information
djarbz committed Oct 24, 2024
1 parent c59ba95 commit bb7d438
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kasmvnc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ install_alpine() {
rm /tmp/kasmvncserver.tgz
}

# Check for sudo (required)
if ! command -v sudo &> /dev/null; then
echo "ERROR: Required command 'sudo' not found"
exit 1
fi

# Detect system information
if [[ ! -f /etc/os-release ]]; then
echo "ERROR: Cannot detect OS: /etc/os-release not found"
Expand Down Expand Up @@ -128,6 +122,12 @@ esac

# Check if vncserver is installed, and install if not
if ! check_installed; then
# Check for sudo (required)
if ! command -v sudo &> /dev/null; then
echo "ERROR: Required command 'sudo' not found"
exit 1
fi

base_url="https://github.com/kasmtech/KasmVNC/releases/download/v${KASM_VERSION}"

echo "Installing KASM version: ${KASM_VERSION}"
Expand Down

0 comments on commit bb7d438

Please sign in to comment.