This commit is contained in:
Ben Potter 2025-06-13 15:45:50 +00:00
parent 99c9a32f49
commit bfbcb3eea9
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
terraform { r wterraform {
required_version = ">= 1.0" required_version = ">= 1.0"
required_providers { required_providers {

View File

@ -218,14 +218,14 @@ if [[ -f "$kasm_config_file" ]]; then
# Update only the network section # Update only the network section
if grep -q "^network:" "$TEMP_CONFIG_FILE"; then if grep -q "^network:" "$TEMP_CONFIG_FILE"; then
# Network section exists, update only the websocket_port # Network section exists, update only the websocket_port
sed -i "s/\([ \t]*websocket_port:\).*/\1 $PORT/" "$TEMP_CONFIG_FILE" sed -i "s/\([ \t]*websocket_port:\).*/\1 ${PORT}/" "$TEMP_CONFIG_FILE"
else else
# Network section doesn't exist, add it # Network section doesn't exist, add it
cat >> "$TEMP_CONFIG_FILE" << EOF cat >> "$TEMP_CONFIG_FILE" << EOF
network: network:
protocol: http protocol: http
interface: 127.0.0.1 interface: 127.0.0.1
websocket_port: $PORT websocket_port: ${PORT}
ssl: ssl:
require_ssl: false require_ssl: false
pem_certificate: pem_certificate:
@ -240,7 +240,7 @@ else
network: network:
protocol: http protocol: http
interface: 127.0.0.1 interface: 127.0.0.1
websocket_port: $PORT websocket_port: ${PORT}
ssl: ssl:
require_ssl: false require_ssl: false
pem_certificate: pem_certificate: