Make legacy/pre-proxysql.bash a no-op

pull/5528/head
Rene Cannao 2 months ago
parent 359e6be734
commit 6769ea4845

@ -1,18 +1,3 @@
#!/usr/bin/env bash
set -e
set -o pipefail
#
# Legacy pre-proxysql hook.
#
# Cluster startup is now handled by start-proxysql-isolated.bash.
# This hook only needs to wait for the cluster to stabilize.
#
NUM_NODES=${PROXYSQL_CLUSTER_NODES:-9}
if [[ "${SKIP_CLUSTER_START}" == "1" ]] || [[ "${SKIP_CLUSTER_START}" == "true" ]] || [[ "${NUM_NODES}" == "0" ]]; then
echo "[$(date '+%Y-%m-%d %H:%M:%S')] >>> Pre-proxysql: no cluster, nothing to do."
exit 0
fi
echo "[$(date '+%Y-%m-%d %H:%M:%S')] >>> Pre-proxysql: waiting for cluster to stabilize..."
sleep 10
# No-op: cluster startup is handled by start-proxysql-isolated.bash
exit 0

Loading…
Cancel
Save