This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ensure the user runs the script with root permissions | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Check and install wget and unzip if necessary | |
for cmd in wget unzip; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Large ASCII Art for Zenon Network | |
echo " | |
███████╗███████╗███╗░░██╗░█████╗░███╗░░██╗ ███╗░░██╗███████╗████████╗░██╗░░░░░░░██╗░█████╗░██████╗░██╗░░██╗ | |
╚════██║██╔════╝████╗░██║██╔══██╗████╗░██║ ████╗░██║██╔════╝╚══██╔══╝░██║░░██╗░░██║██╔══██╗██╔══██╗██║░██╔╝ | |
░░███╔═╝█████╗░░██╔██╗██║██║░░██║██╔██╗██║ ██╔██╗██║█████╗░░░░░██║░░░░╚██╗████╗██╔╝██║░░██║██████╔╝█████═╝░ | |
██╔══╝░░██╔══╝░░██║╚████║██║░░██║██║╚████║ ██║╚████║██╔══╝░░░░░██║░░░░░████╔═████║░██║░░██║██╔══██╗██╔═██╗░ | |
███████╗███████╗██║░╚███║╚█████╔╝██║░╚███║ ██║░╚███║███████╗░░░██║░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░░██║██║░╚██╗ | |
╚══════╝╚══════╝╚═╝░░╚══╝░╚════╝░╚═╝░░╚══╝ ╚═╝░░╚══╝╚══════╝░░░╚═╝░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to check if a program is installed | |
function check_program() { | |
which $1 &>/dev/null | |
return $? | |
} | |
# Function to modify the /root/.orchestrator/config.json file | |
function modify_config_json() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Get the latest release from GitHub API | |
latest_release=$(curl -s https://api.github.com/repos/HyperCore-Team/orchestrator/releases/latest | jq -r ".assets[] | select(.name | contains(\"linux-amd64.zip\")) | .browser_download_url") | |
# Download the latest release | |
wget -O orchestrator-linux-amd64.zip "$latest_release" | |
unzip -o orchestrator-linux-amd64.zip |