Sha256: 2dae0672fa90cc2b20f721e65acd938e96c62b85438e0d0d49d037f8e880e2b4

Contents?: true

Size: 607 Bytes

Versions: 8

Compression:

Stored size: 607 Bytes

Contents

#!/bin/bash

set -e

export DEFAULT_NATS_SERVER_VERSION=v2.0.0

export NATS_SERVER_VERSION="${NATS_SERVER_VERSION:=$DEFAULT_NATS_SERVER_VERSION}"

# check to see if nats-server folder is empty
if [ ! "$(ls -A $HOME/nats-server)" ]; then
    (
	mkdir -p $HOME/nats-server
	cd $HOME/nats-server
	wget https://github.com/nats-io/nats-server/releases/download/$NATS_SERVER_VERSION/nats-server-$NATS_SERVER_VERSION-linux-amd64.zip -O nats-server.zip
	unzip nats-server.zip
	cp nats-server-$NATS_SERVER_VERSION-linux-amd64/nats-server $HOME/nats-server/nats-server
    )
else
  echo 'Using cached directory.';
fi

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
protobuf-nats-0.10.8 scripts/install_gnatsd.sh
protobuf-nats-0.10.7 scripts/install_gnatsd.sh
protobuf-nats-0.10.6 scripts/install_gnatsd.sh
protobuf-nats-0.10.5 scripts/install_gnatsd.sh
protobuf-nats-0.12.0.pre0 scripts/install_gnatsd.sh
protobuf-nats-0.10.4 scripts/install_gnatsd.sh
protobuf-nats-0.10.3 scripts/install_gnatsd.sh
protobuf-nats-0.10.3.pre0 scripts/install_gnatsd.sh