diff --git a/ci/setup-new-buildkite-agent/setup-new-machine.sh b/ci/setup-new-buildkite-agent/setup-new-machine.sh index cc17e89188b7eb..cbaedd2d0a9dcc 100755 --- a/ci/setup-new-buildkite-agent/setup-new-machine.sh +++ b/ci/setup-new-buildkite-agent/setup-new-machine.sh @@ -36,9 +36,7 @@ usermod -aG docker "$SETUP_USER" "$HERE"/disable-networkd-wait.sh "$SOLANA_ROOT"/net/scripts/install-earlyoom.sh -"$SOLANA_ROOT"/net/scripts/install-nodejs.sh "$SOLANA_ROOT"/net/scripts/localtime.sh -"$SOLANA_ROOT"/net/scripts/install-redis.sh "$SOLANA_ROOT"/net/scripts/install-rsync.sh "$SOLANA_ROOT"/net/scripts/install-libssl-compatability.sh diff --git a/net/scripts/install-nodejs.sh b/net/scripts/install-nodejs.sh deleted file mode 100755 index c936f1821d4b2f..00000000000000 --- a/net/scripts/install-nodejs.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -# -# Reference: https://github.com/nodesource/distributions/blob/master/README.md#deb -# -set -ex - -[[ $(uname) = Linux ]] || exit 1 -[[ $USER = root ]] || exit 1 - -# Install node/npm -curl -sL https://deb.nodesource.com/setup_10.x | bash - -apt-get install -y nodejs -node --version -npm --version - -# Install yarn -curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list -apt-get update -qq -apt-get install -y yarn -yarn --version diff --git a/net/scripts/install-redis.sh b/net/scripts/install-redis.sh deleted file mode 100755 index fcc9169129e0a1..00000000000000 --- a/net/scripts/install-redis.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash -set -ex - -[[ $(uname) = Linux ]] || exit 1 -[[ $USER = root ]] || exit 1 - -add-apt-repository -y ppa:chris-lea/redis-server -apt-get --assume-yes install redis - -systemctl enable redis-server.service - -REDIS_CONF=/etc/redis/redis.conf - -if grep -q "^maxmemory " $REDIS_CONF; then - echo "setting maxmemory" - sed -i '/^maxmemory .*/ s//maxmemory 8gb/' $REDIS_CONF -else - echo "maxmemory not present: appending setting" - cat << EOF >> $REDIS_CONF - -# limit set by solana/net/scripts/install-redis.sh -maxmemory 8gb -EOF - -fi - -if grep -q "^maxmemory-policy " $REDIS_CONF; then - echo "setting maxmemory-policy" - sed -i '/^maxmemory-policy .*/ s//maxmemory-policy allkeys-lru/' $REDIS_CONF -else - echo "maxmemory-policy not present: appending setting" - cat << EOF >> $REDIS_CONF -# limit set by solana/net/scripts/install-redis.sh -maxmemory-policy allkeys-lru - -EOF -fi - -service redis-server restart