Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 981 Bytes

README.md

File metadata and controls

49 lines (37 loc) · 981 Bytes

DefiNode Upgrader

The upgrade.sh script will upgrade your definode iff

  • It is placed in the standard folder $HOME/.defi
  • You used cron to manage your defid
  • You run Linux X86_64

Steps it will take

  1. Disable CRON
  2. Kill defid
  3. Download update
  4. If snapshot delete old chain and restore from snapshot
  5. Restore CRON

Usage

./upgrade.sh version snapshot

version - Version without the v. such as 2.6.2
snapshot - true or false. When true it will delete your current chain and restore from snapshot. Wallet will not be touched.

Example

Upgrade to 2.7.0-alpha with snapshot

./upgrade.sh 2.7.0-alpha true
Disable CRON: [DONE]
Stop dfid: [DONE]
Updating defi node v.2.7.0-alpha: [DONE]
Setup from snapshot: [DONE]
Enable CRON: [DONE]
.:[ DONE ]:.

Upgrade to 2.7.0-alpha without snapshot

./upgrade.sh 2.7.0-alpha
Disable CRON: [DONE]
Stop dfid: [DONE]
Updating defi node v.2.7.0-alpha: [DONE]
Enable CRON: [DONE]
.:[ DONE ]:.