-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcontroller.sh
More file actions
executable file
·23 lines (20 loc) · 850 Bytes
/
controller.sh
File metadata and controls
executable file
·23 lines (20 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2018
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
set -o nounset
set -o pipefail
set -o errexit
if [[ ${OS_DEBUG:-false} == "true" ]]; then
export PKG_DEBUG=true
set -o xtrace
fi
_start=$(date +%s)
trap 'printf "Controller installation process: %s secs\n" "$(($(date +%s)-_start))"' EXIT
# NOTE: Required for HA setups to allow rabbit hostname resolves uniquely to the proper IP address
echo "" | sudo tee /etc/hosts