Simplify config file creation in kasmvnc script
This commit is contained in:
@@ -159,9 +159,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# create the config file as the current user .vnc/kasmvnc.yaml
|
# create the config file as the current user .vnc/kasmvnc.yaml
|
||||||
config_path="~/.vnc/kasmvnc.yaml"
|
mkdir -p "$HOME/.vnc" # Ensure the directory exists
|
||||||
|
cat > "$HOME/.vnc/kasmvnc.yaml" <<EOF
|
||||||
tee $config_path > /dev/null <<EOF
|
|
||||||
network:
|
network:
|
||||||
protocol: http
|
protocol: http
|
||||||
websocket_port: ${PORT}
|
websocket_port: ${PORT}
|
||||||
|
|||||||
Reference in New Issue
Block a user