Skip to content

Commit

Permalink
Update stage_upgrade.sh for 1.4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
sacherjj authored May 8, 2023
1 parent ecdae6b commit 374be6b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions stage_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

# This script will stage the upgrade files for casper network from 1.4.9 to 1.4.13
# This script will stage the upgrade files for casper network from 1.4.13 to 1.4.15

if [ "$(whoami)" != "root" ]; then
echo
Expand All @@ -12,8 +12,8 @@ if [ "$(whoami)" != "root" ]; then
exit 1
fi

if [[ -d "/etc/casper/1_4_13" ]]; then
echo "Upgrade 1.4.13 already staged."
if [[ -d "/etc/casper/1_4_15" ]]; then
echo "Upgrade 1.4.15 already staged."
exit 0
fi

Expand All @@ -24,11 +24,11 @@ CNL_VERSION=$(casper-node-launcher --version | cut -d' ' -f4)

if [ $CNL_VERSION == "0.3.2" ]; then
echo "casper-node-launcher version 0.3.2, using old syntax."
sudo -u casper /etc/casper/pull_casper_node_version.sh 1_4_13 casper
sudo -u casper /etc/casper/pull_casper_node_version.sh 1_4_15 casper
else
echo "casper-node-launcher version 0.3.3+, using conf syntax."
sudo -u casper /etc/casper/pull_casper_node_version.sh casper.conf 1_4_13
sudo -u casper /etc/casper/pull_casper_node_version.sh casper.conf 1_4_15
fi

sudo -u casper /etc/casper/config_from_example.sh 1_4_13
echo "Upgrade 1_4_13 staged."
sudo -u casper /etc/casper/config_from_example.sh 1_4_15
echo "Upgrade 1_4_15 staged."

0 comments on commit 374be6b

Please sign in to comment.