060-perform-azure-master-promote.sh 268 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash

set -eu

# shellcheck source=/dev/null
source "${BASE}/env_${ENVIRONMENT}"

# WARNING WARNING WARNING here switchback happens!
ssh_remote "$AZURE_MASTER" sudo -u gitlab-psql /opt/gitlab/embedded/bin/pg_ctl \
    promote -D /var/opt/gitlab/postgresql/data