From 620c389bd5095a1fd6270a061c4f8b236c356fd5 Mon Sep 17 00:00:00 2001 From: "Ola [AHLNET]" Date: Tue, 28 Nov 2023 09:02:54 +0100 Subject: [PATCH] Fix for op cert if glv is started before node is ready in core mode. (#1713) ## Description Minor fix for opcert to re-run check if node goes from relay to core mode on startup. --- scripts/cnode-helper-scripts/gLiveView.sh | 4 ++-- scripts/grest-helper-scripts/setup-grest.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cnode-helper-scripts/gLiveView.sh b/scripts/cnode-helper-scripts/gLiveView.sh index 4b5927830f..1c82d628ef 100755 --- a/scripts/cnode-helper-scripts/gLiveView.sh +++ b/scripts/cnode-helper-scripts/gLiveView.sh @@ -59,7 +59,7 @@ setTheme() { # Do NOT modify code below # ###################################### -GLV_VERSION=v1.28.1 +GLV_VERSION=v1.28.2 PARENT="$(dirname $0)" @@ -823,7 +823,7 @@ while true; do cpu_util="0.0" fi if [[ ${about_to_lead} -gt 0 ]]; then - [[ ${nodemode} != "Core" ]] && clrScreen && nodemode="Core" + [[ ${nodemode} != "Core" ]] && nodemode="Core" && getOpCert && clrScreen else [[ ${nodemode} != "Relay" ]] && clrScreen && nodemode="Relay" fi diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index cc3420a331..98b313c9a2 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -197,7 +197,7 @@ SGVERSION=v1.1.0 # Description : Remove all grest-related cron entries. remove_all_grest_cron_jobs() { printf "\nRemoving all installed cron jobs..." - grep -rl ${CRON_SCRIPTS_DIR} ${CRON_DIR} | xargs rm -f + grep -rl ${CRON_SCRIPTS_DIR} ${CRON_DIR} | xargs sudo rm -f rm -f ${CRON_SCRIPTS_DIR}/*.sh psql "${PGDATABASE}" -qt -c "SELECT PG_CANCEL_BACKEND(pid) FROM pg_stat_activity WHERE usename='${USER}' AND application_name = 'psql' AND query NOT LIKE '%pg_stat_activity%';" psql "${PGDATABASE}" -qt -c "SELECT PG_TERMINATE_BACKEND(pid) FROM pg_stat_activity WHERE usename='${USER}' AND application_name = 'psql' AND query NOT LIKE '%pg_stat_activity%';"