diff --git a/ethpillar.sh b/ethpillar.sh index 9dae859..d64237f 100755 --- a/ethpillar.sh +++ b/ethpillar.sh @@ -1262,7 +1262,7 @@ function getBackTitle(){ CSM_TEXT=$(if systemctl is-active --quiet csm_nimbusvalidator; then printf " | CSM VC $CSM_VC"; elif [[ -f /etc/systemd/system/csm_nimbusvalidator.service ]]; then printf " | Offline CSM VC $CSM_VC"; fi) HOSTNAME=$(hostname) NETWORK_TEXT=$(if [[ $(systemctl is-active --quiet execution) ]] || [[ $LB != "EL Syncing" ]] || [[ "$LB" == "EL Syncing" && "$latest_block_number" == "0x0" ]]; then printf "$NETWORK on $HOSTNAME | "; else printf "$HOSTNAME | " ; fi) - if [[ $NODE_MODE == "Validator Client Only" ]]; then + if [[ $NODE_MODE =~ "Validator Client Only" ]]; then BACKTITLE="${NETWORK_TEXT}${EL_TEXT} | ${CL_TEXT}${VC_TEXT} | Public Goods by CoinCashew.eth" else BACKTITLE="${NETWORK_TEXT}${EL_TEXT} | $CL_TEXT | $CL-$EL$VC_TEXT | Public Goods by CoinCashew.eth" diff --git a/update_consensus.sh b/update_consensus.sh index 3cbf185..6afda98 100755 --- a/update_consensus.sh +++ b/update_consensus.sh @@ -25,7 +25,7 @@ function promptYesNo(){ function promptViewLogs(){ if whiptail --title "Update complete" --yesno "Would you like to view logs and confirm everything is running properly?" 8 78; then - if [[ ${NODE_MODE} == "Validator Client Only" ]]; then + if [[ ${NODE_MODE} =~ "Validator Client Only" ]]; then sudo bash -c 'journalctl -fu validator | ccze -A' else sudo bash -c 'journalctl -fu consensus | ccze -A'