diff --git a/cmd/node.go b/cmd/node.go index f67e1e27..42045f6a 100644 --- a/cmd/node.go +++ b/cmd/node.go @@ -97,7 +97,7 @@ func installNodeLinux() { installCmd = `sudo apt update sudo apt install -y gnupg2 curl software-properties-common curl -o - https://releases.algorand.com/key.pub | sudo tee /etc/apt/trusted.gpg.d/algorand.asc - sudo add-apt-repository "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" + sudo add-apt-repository -y "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" sudo apt update # To get both algorand and the devtools: @@ -106,7 +106,7 @@ func installNodeLinux() { installCmd = `sudo apt-get update sudo apt-get install -y gnupg2 curl software-properties-common curl -o - https://releases.algorand.com/key.pub | sudo tee /etc/apt/trusted.gpg.d/algorand.asc - sudo add-apt-repository "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" + sudo add-apt-repository -y "deb [arch=amd64] https://releases.algorand.com/deb/ stable main" sudo apt-get update # To get both algorand and the devtools: @@ -330,6 +330,7 @@ func startAlgodProcess() { os.Exit(1) } + // Wait for the process to start time.Sleep(5 * time.Second) if isAlgodRunning() {