From c442ab75573680f4b28c1e7867aa625aa8f1e73c Mon Sep 17 00:00:00 2001 From: Dustin Xie Date: Thu, 4 Apr 2024 19:35:52 -0700 Subject: [PATCH] option to update to latest config --- scripts/setup_fullnode.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/setup_fullnode.sh b/scripts/setup_fullnode.sh index 99041ae..da969b5 100644 --- a/scripts/setup_fullnode.sh +++ b/scripts/setup_fullnode.sh @@ -161,6 +161,12 @@ function checkPrivateKey() { function procssNotUpdate() { + latestConfig=N + read -p "Do you want to update to latest config [Y/N] (Default: $latestConfig)? " latestConfig + if [ "${latestConfig}X" = "yX" ] || [ "${latestConfig}X" = "YX" ];then + downloadConfig + echo "Updated to latest config" + fi echo "Not Upgrade!! current plugin is not changed, current ${runversion} is running....!" docker start iotex if [ "${wantmonitor}"X = "Y"X -o "${wantmonitor}"X = "y"X -o \