Skip to content

Commit 5209fd7

Browse files
committed
Merge branch 'master' into enhancement/49-tls-encryption
2 parents 145e368 + e4f9031 commit 5209fd7

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

bin/consul-manage

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ preStart() {
6363
# advertise_addr_wan tells nodes their public address for WAN communication
6464
updateConfigFromEnvOrDefault 'advertise_addr_wan' 'CONSUL_ADVERTISE_ADDR_WAN' "$IP_ADDRESS"
6565

66-
6766
# there's no consul env for this
6867
if [ -n "$CONSUL_ENCRYPT" ]; then
6968
sed -i '/^encrypt =/d' /etc/consul/consul.hcl
@@ -237,10 +236,6 @@ _log() {
237236
echo " $(date -u '+%Y-%m-%d %H:%M:%S') containerpilot: $@"
238237
}
239238

240-
_exitSuccess() {
241-
exit 0
242-
}
243-
244239
#
245240
# Defines $1 in the consul configuration as either an env or a default.
246241
# This basically behaves like ${!name_of_var} and ${var:-default} together

examples/compose/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ services:
99
# env var) to find each other and bootstrap the cluster.
1010
# Note: Unless CONSUL_DEV is set, at least three instances are required for quorum.
1111
consul:
12-
build: ../../
1312
image: autopilotpattern/consul:${TAG:-latest}
1413
restart: always
1514
mem_limit: 128m

examples/triton/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ check() {
5959
local docker_user=$(docker info 2>&1 | awk -F": " '/SDCAccount:/{print $2}')
6060
local docker_dc=$(echo $DOCKER_HOST | awk -F"/" '{print $3}' | awk -F'.' '{print $1}')
6161

62-
TRITON_USER=$(triton profile get $TRITON_PROFILE | awk -F": " '/account:/{print $2}')
63-
TRITON_DC=$(triton profile get $TRITON_PROFILE | awk -F"/" '/url:/{print $3}' | awk -F'.' '{print $1}')
62+
TRITON_USER=$(triton profile get | awk -F": " '/account:/{print $2}')
63+
TRITON_DC=$(triton profile get | awk -F"/" '/url:/{print $3}' | awk -F'.' '{print $1}')
6464
TRITON_ACCOUNT=$(triton account get | awk -F": " '/id:/{print $2}')
6565

6666
if [ ! "$docker_user" = "$TRITON_USER" ] || [ ! "$docker_dc" = "$TRITON_DC" ]; then

0 commit comments

Comments
 (0)