From 1de376f781196166e38e4e821d9a2f80d6d0003a Mon Sep 17 00:00:00 2001 From: "Dennis J. Bell" Date: Thu, 19 Oct 2023 16:56:40 -0700 Subject: [PATCH] Fix resurrection addon [Bug Fixes] * Fix resurrection addon - now correctly connects to bosh and accesses database to read resurrection state if present. --- hooks/addon-resurrection~easter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/addon-resurrection~easter b/hooks/addon-resurrection~easter index 70202d7d..fac0286c 100755 --- a/hooks/addon-resurrection~easter +++ b/hooks/addon-resurrection~easter @@ -61,12 +61,12 @@ elif [[ "${GENESIS_USE_CREATE_ENV:=0}" == '1' ]] ; then else # Do it the slow way... - ssh_cmd=( "${GENESIS_CALL_BIN}" "${GENESIS_ENV_REF}" "bosh" "-A" "ssh" "-c" ) + ssh_cmd=( "${GENESIS_CALL_BIN}" "${GENESIS_ENV_REF}" "bosh" "ssh" "-c" ) fi describe "Connecting to PostgreSQL database on BOSH director..." psql="$( "${ssh_cmd[@]}" \ - 'ps auwwx| grep "/packages/[^ ]*/bin/[p]ostges"' 2>/dev/null \ + 'ps auwwx| grep "/packages/[^ ]*/bin/[p]ostgres"' 2>/dev/null \ | grep '/var/[^ ]*/bin/postgres' \ | sed -e 's#.*\(/var/[^ ]*/bin\)/postgres.*#\1/psql#' )"