chore: remove install-nodejs.sh and install-redis.sh (#33684)
chore: remove unused scripts
This commit is contained in:
parent
abfecad785
commit
923d5b5324
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue