Files
postgresql-repmgr/rootfs/events/execs/includes/unlock_primary.sh

13 lines
315 B
Bash
Raw Normal View History

2026-02-17 08:07:53 +01:00
#!/bin/bash
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace # Uncomment this line for debugging purposes
# shellcheck disable=SC2154
echo "$header Unlocking primary..."
rm -f "$REPMGR_PRIMARY_ROLE_LOCK_FILE_NAME"