From 106320b03512e316906b4f2a4c2117e980edb9a1 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 5 May 2021 02:04:03 +0000 Subject: [PATCH] nats 2.2.2 --- install.sh | 6 +++--- restore.sh | 6 +++--- update.sh | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 5719e1bc..49a1330f 100644 --- a/install.sh +++ b/install.sh @@ -167,11 +167,11 @@ sudo chmod 775 -R /etc/letsencrypt print_green 'Downloading NATS' nats_tmp=$(mktemp -d -t nats-XXXXXXXXXX) -wget https://github.com/nats-io/nats-server/releases/download/v2.2.0/nats-server-v2.2.0-linux-amd64.tar.gz -P ${nats_tmp} +wget https://github.com/nats-io/nats-server/releases/download/v2.2.2/nats-server-v2.2.2-linux-amd64.tar.gz -P ${nats_tmp} -tar -xzf ${nats_tmp}/nats-server-v2.2.0-linux-amd64.tar.gz -C ${nats_tmp} +tar -xzf ${nats_tmp}/nats-server-v2.2.2-linux-amd64.tar.gz -C ${nats_tmp} -sudo mv ${nats_tmp}/nats-server-v2.2.0-linux-amd64/nats-server /usr/local/bin/ +sudo mv ${nats_tmp}/nats-server-v2.2.2-linux-amd64/nats-server /usr/local/bin/ sudo chmod +x /usr/local/bin/nats-server sudo chown ${USER}:${USER} /usr/local/bin/nats-server rm -rf ${nats_tmp} diff --git a/restore.sh b/restore.sh index 5cc5e147..67379312 100755 --- a/restore.sh +++ b/restore.sh @@ -108,11 +108,11 @@ sudo apt update print_green 'Downloading NATS' nats_tmp=$(mktemp -d -t nats-XXXXXXXXXX) -wget https://github.com/nats-io/nats-server/releases/download/v2.2.0/nats-server-v2.2.0-linux-amd64.tar.gz -P ${nats_tmp} +wget https://github.com/nats-io/nats-server/releases/download/v2.2.2/nats-server-v2.2.2-linux-amd64.tar.gz -P ${nats_tmp} -tar -xzf ${nats_tmp}/nats-server-v2.2.0-linux-amd64.tar.gz -C ${nats_tmp} +tar -xzf ${nats_tmp}/nats-server-v2.2.2-linux-amd64.tar.gz -C ${nats_tmp} -sudo mv ${nats_tmp}/nats-server-v2.2.0-linux-amd64/nats-server /usr/local/bin/ +sudo mv ${nats_tmp}/nats-server-v2.2.2-linux-amd64/nats-server /usr/local/bin/ sudo chmod +x /usr/local/bin/nats-server sudo chown ${USER}:${USER} /usr/local/bin/nats-server rm -rf ${nats_tmp} diff --git a/update.sh b/update.sh index 0ea97803..4a5bf2a4 100644 --- a/update.sh +++ b/update.sh @@ -186,14 +186,14 @@ if ! [[ $HAS_PY39 ]]; then sudo rm -rf Python-3.9.2 Python-3.9.2.tgz fi -HAS_NATS220=$(/usr/local/bin/nats-server -version | grep v2.2.0) +HAS_NATS220=$(/usr/local/bin/nats-server -version | grep v2.2.2) if ! [[ $HAS_NATS220 ]]; then - printf >&2 "${GREEN}Updating nats to v2.2.0${NC}\n" + printf >&2 "${GREEN}Updating nats to v2.2.2${NC}\n" nats_tmp=$(mktemp -d -t nats-XXXXXXXXXX) - wget https://github.com/nats-io/nats-server/releases/download/v2.2.0/nats-server-v2.2.0-linux-amd64.tar.gz -P ${nats_tmp} - tar -xzf ${nats_tmp}/nats-server-v2.2.0-linux-amd64.tar.gz -C ${nats_tmp} + wget https://github.com/nats-io/nats-server/releases/download/v2.2.2/nats-server-v2.2.2-linux-amd64.tar.gz -P ${nats_tmp} + tar -xzf ${nats_tmp}/nats-server-v2.2.2-linux-amd64.tar.gz -C ${nats_tmp} sudo rm -f /usr/local/bin/nats-server - sudo mv ${nats_tmp}/nats-server-v2.2.0-linux-amd64/nats-server /usr/local/bin/ + sudo mv ${nats_tmp}/nats-server-v2.2.2-linux-amd64/nats-server /usr/local/bin/ sudo chmod +x /usr/local/bin/nats-server sudo chown ${USER}:${USER} /usr/local/bin/nats-server rm -rf ${nats_tmp}