From 3a3262f003e7f3ffe5b765cba4eb71ad94f97581 Mon Sep 17 00:00:00 2001 From: "Quentin G." Date: Sat, 14 Sep 2024 11:05:43 +0200 Subject: [PATCH] fix(one-liner): update SERVER_URL when not using default port (#7026) Small fix that should resolve #6341 by replacing the port of SERVER_URL in the generated .env file --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 2b7a2d46ee..39eb096b8e 100755 --- a/install.sh +++ b/install.sh @@ -112,8 +112,10 @@ if command -v nc &> /dev/null; then read -p "Enter a new port number: " new_port if [[ $(uname) == "Darwin" ]]; then sed -i '' "s/$port:$port/$new_port:$port/g" docker-compose.yml + sed -E -i '' "s|^SERVER_URL=http://localhost:[0-9]+|SERVER_URL=http://localhost:$new_port|g" .env else sed -i'' "s/$port:$port/$new_port:$port/g" docker-compose.yml + sed -E -i'' "s|^SERVER_URL=http://localhost:[0-9]+|SERVER_URL=http://localhost:$new_port|g" .env fi port=$new_port done