From 0c7f8be8103f7753c37cb68c374b48c40f6f8ba8 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 20 Aug 2023 17:09:39 +0200 Subject: [PATCH] Update install.sh --- install.sh | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/install.sh b/install.sh index 60b27cf..bd0f4f9 100644 --- a/install.sh +++ b/install.sh @@ -20,6 +20,9 @@ sudo tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz # Create a symbolic link for the Go binary sudo ln -s /usr/local/go/bin/go /usr/local/bin/go +# Get the local IP address of the Linux system +ip_address=$(hostname -I | cut -d' ' -f1) + # Configure Nginx sudo sh -c 'cat > /etc/nginx/sites-available/default < www/config/environment.js + echo "Installation completed!"