#!/bin/bash # Author: Shi-Ken Don # Source: https://git.io/deploy-consul-agent.sh.dev # License: MIT set -e sudo -V > /dev/null || apt -y install sudo sudo apt -y install consul sudo systemctl enable consul CONSUL_SERVER_IP=${CONSUL_SERVER_IP:-2606:2800:220:1:248:1893:25c8:1946} cat <