From b33314b2db14876cdab23df5dde38c796c437be3 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 26 May 2024 14:29:52 +0300 Subject: [PATCH] fix --- install/install_quilibrium_service.sh | 50 +-------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index e4fe448..f601eab 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -14,7 +14,7 @@ echo "⏳Processing..." sleep 2 # Add a 2-second delay apt update apt upgrade -y -apt install sudo -y #for non root Debian OS users +apt install sudo -y #for non root Debian OS apt install git -y # Step 2: Adjust network buffer sizes @@ -31,54 +31,6 @@ else fi sudo sysctl -p -# Installing Go 1.20.14 -wget https://go.dev/dl/go1.20.14.linux-amd64.tar.gz -sudo tar -xvf go1.20.14.linux-amd64.tar.gz || { echo "Failed to extract Go! Exiting..."; exit_message; exit 1; } -sudo mv go /usr/local || { echo "Failed to move go! Exiting..."; exit_message; exit 1; } -sudo rm go1.20.14.linux-amd64.tar.gz || { echo "Failed to remove downloaded archive! Exiting..."; exit_message; exit 1; } - - -# Step 4: Set Go environment variables -echo "⏳Setting Go environment variables..." -sleep 5 # Add a 5-second delay - -# Check if GOROOT is already set -if grep -q 'GOROOT=/usr/local/go' ~/.bashrc; then - echo "GOROOT already set in ~/.bashrc." -else - echo 'GOROOT=/usr/local/go' >> ~/.bashrc - echo "GOROOT set in ~/.bashrc." -fi - -# Check if GOPATH is already set -if grep -q "GOPATH=$HOME/go" ~/.bashrc; then - echo "GOPATH already set in ~/.bashrc." -else - echo "GOPATH=$HOME/go" >> ~/.bashrc - echo "GOPATH set in ~/.bashrc." -fi - -# Check if PATH is already set -if grep -q 'PATH=$GOPATH/bin:$GOROOT/bin:$PATH' ~/.bashrc; then - echo "PATH already set in ~/.bashrc." -else - echo 'PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bashrc - echo "PATH set in ~/.bashrc." -fi - -# Source .bashrc to apply changes -echo "⏳Sourcing .bashrc to apply changes" -source ~/.bashrc -sleep 5 # Add a 5-second delay - -# Check GO Version -go version -sleep 5 # Add a 5-second delay - -# Install gRPCurl -echo "⏳Installing gRPCurl" -sleep 1 # Add a 1-second delay -go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest # Step 8:Download Ceremonyclient echo "⏳Downloading Ceremonyclient"