This assumes that you have basic knowledge of Raspberry Pi and Linux system administration.
- The script assumes that you have installed the Ergo Node using 'ergo_node_setup.py'.
- You must have root privileges to run this script (use 'sudo').
- The node should be installed in the default directory: '~/ergo-node'.
- You must have sudo privileges to move files and restart services.
Make the program script executable using the following command (first time only):
chmod +x ergo_node_update.py
Run the program
sudo python3 ergo_node_update.py
The program will start and guide you through the Ergo Node setup process. Follow the prompts, and leave the prompt blank to use default settings when applicable.
Important: The program will perform tasks that require administrative (sudo) privileges. You may be prompted to enter your password during the execution of certain commands.
This script automates the process of updating your Ergo Node to the latest mainnet release. It performs the following tasks:
- Determines the current version of the Ergo Node installed.
- Fetches the latest mainnet release version from the Ergo GitHub repository.
- Compares the current version with the latest version.
- If already running the latest version, it provides proofs and exits.
- Prompts the user to confirm updating to the latest version.
- Downloads the latest Ergo Node JAR file.
- Updates the systemd service file to point to the new JAR version.
- Restarts the Ergo Node service to apply the changes.
- Provides confirmation and instructions to verify the update.
Aliases were configured for your node to make node interaction easier:
ergo-status shows the status of the node.
ergo-start will start the node service.
ergo-stop will end the node service.
ergo-restart will restart the node.
ergo-help will show all node commands.
ergo-logs shows the log file of the node.