Simplify config file creation in kasmvnc script

This commit is contained in:
Muhammad Atif Ali
2024-10-23 21:18:56 +05:00
parent f63b460971
commit 2e0f3eddc0

View File

@@ -159,9 +159,8 @@ else
fi
# create the config file as the current user .vnc/kasmvnc.yaml
config_path="~/.vnc/kasmvnc.yaml"
tee $config_path > /dev/null <<EOF
mkdir -p "$HOME/.vnc" # Ensure the directory exists
cat > "$HOME/.vnc/kasmvnc.yaml" <<EOF
network:
protocol: http
websocket_port: ${PORT}