Improve output of build-and-deploy

This commit is contained in:
Joshua Boniface 2024-08-25 15:57:07 -04:00
parent c1f320ede2
commit c45e488958
1 changed files with 3 additions and 2 deletions

View File

@ -87,9 +87,10 @@ for HOST in ${HOSTS[@]}; do
done
echo " done."
if [[ -n ${PRIMARY_NODE} && ${PRIMARY_NODE} == ${HOST} ]]; then
echo -n ">>> "
ssh $HOST pvc -q node primary --wait
echo -n ">>> Setting node $HOST to primary coordinator state... "
ssh $HOST pvc -q node primary --wait &>/dev/null
ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null
echo "done."
fi
done