umm?
This commit is contained in:
parent
99c9a32f49
commit
bfbcb3eea9
@ -1,4 +1,4 @@
|
|||||||
terraform {
|
r wterraform {
|
||||||
required_version = ">= 1.0"
|
required_version = ">= 1.0"
|
||||||
|
|
||||||
required_providers {
|
required_providers {
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user