-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathinstall.sh
executable file
·34 lines (27 loc) · 915 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -uo pipefail
#==============================================================#
# File : install.sh
# Mtime : 2019-03-10
# Desc : Install All Common Components for PostgreSQL
# Path : bin/install.sh
# Author : Vonng([email protected])
# Deps # Other installation scripts in same dir
#==============================================================#
# module info
__MODULE_INSTALL="install"
PROG_DIR="$(cd $(dirname $0) && pwd)"
PROG_NAME="$(basename $0)"
if [[ $(whoami) != "root" ]]; then
echo "error: install consul require root"
return 1
fi
${PROG_DIR}/setup-dns.sh
${PROG_DIR}/install-utils.sh
${PROG_DIR}/install-consul.sh
${PROG_DIR}/install-node-exporter.sh
${PROG_DIR}/install-postgres.sh
${PROG_DIR}/install-postgres-exporter.sh
${PROG_DIR}/install-pgbouncer.sh
${PROG_DIR}/install-pgbouncer-exporter.sh
${PROG_DIR}/install-walarchiver.sh