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 done
echo " done." echo " done."
if [[ -n ${PRIMARY_NODE} && ${PRIMARY_NODE} == ${HOST} ]]; then if [[ -n ${PRIMARY_NODE} && ${PRIMARY_NODE} == ${HOST} ]]; then
echo -n ">>> " echo -n ">>> Setting node $HOST to primary coordinator state... "
ssh $HOST pvc -q node primary --wait ssh $HOST pvc -q node primary --wait &>/dev/null
ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null
echo "done."
fi fi
done done