From 63ae5fac04766552ebe7e9d62ec6b23dd5db1a1b Mon Sep 17 00:00:00 2001 From: ZENODE Date: Thu, 1 Feb 2024 00:01:12 +0100 Subject: [PATCH] Update upgrade.sh Signed-off-by: ZENODE --- setup/upgrade.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/upgrade.sh b/setup/upgrade.sh index 4c12b55463..06036f0220 100644 --- a/setup/upgrade.sh +++ b/setup/upgrade.sh @@ -45,6 +45,13 @@ cd $REPO_ROOT # System update and installation of dependencies . ./setup/dependencies.sh +# Rename .genesisd to .genesis if applicable (which we used in the past) +GENESISD_DIR="$HOME/.genesisd" +if [ ! -d "$NODE_DIR" ] && [ -d "$GENESISD_DIR" ]; then + mv "$GENESISD_DIR" "$NODE_DIR" + echo "Renamed .genesisd to .genesis." +fi + # Create a backup of old config files cp $CONFIG_DIR/app.toml $CONFIG_DIR/app.toml.bak cp $CONFIG_DIR/config.toml $CONFIG_DIR/config.toml.bak