implemented version

This commit is contained in:
0xOzgur 2024-05-26 16:39:40 +03:00
parent 48ba3870ee
commit b5341de1e6
2 changed files with 15 additions and 8 deletions

View File

@ -2,8 +2,9 @@
cd ~
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth"
echo "This script is made with ❤️ by https://quilibrium.space @ 0xOzgur.eth"
echo "The script is prepared for Ubuntu machines. If you are using another operating system, please check the compatibility of the script."
echo "The script doesn't install GO or GrpCurl packages. If you want to install them please visit https://docs.quilibrium.space/installing-prerequisites page."
echo "⏳Enjoy and sit back while you are building your Quilibrium Node!"
echo "⏳Processing..."
sleep 10 # Add a 10-second delay
@ -47,6 +48,9 @@ fi
cd ~/ceremonyclient/
git checkout release
# Set the version number
VERSION="1.4.18"
# Get the system architecture
ARCH=$(uname -m)
@ -58,11 +62,11 @@ NODE_PATH="$HOME/ceremonyclient/node"
# Step10.1:Determine the ExecStart line based on the architecture
if [ "$ARCH" = "x86_64" ]; then
EXEC_START="$NODE_PATH/node-1.4.18-linux-amd64"
EXEC_START="$NODE_PATH/node-$VERSION-linux-amd64"
elif [ "$ARCH" = "aarch64" ]; then
EXEC_START="$NODE_PATH/node-1.4.18-linux-arm64"
EXEC_START="$NODE_PATH/node-$VERSION-linux-arm64"
elif [ "$ARCH" = "arm64" ]; then
EXEC_START="$NODE_PATH/node-1.4.18-darwin-arm64"
EXEC_START="$NODE_PATH/node-$VERSION-darwin-arm64"
else
echo "Unsupported architecture: $ARCH"
exit 1

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth"
echo "This script is made with ❤️ by https://quilibrium.space @ 0xOzgur.eth"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.18!"
echo "The script is prepared for Ubuntu machines. If you are using another operating system, please check the compatibility of the script."
echo "⏳Processing..."
@ -16,6 +16,9 @@ cd ~/ceremonyclient
git pull
git checkout release
# Set the version number
VERSION="1.4.18"
# Get the system architecture
ARCH=$(uname -m)
@ -27,11 +30,11 @@ NODE_PATH="$HOME/ceremonyclient/node"
# Step10.1:Determine the ExecStart line based on the architecture
if [ "$ARCH" = "x86_64" ]; then
EXEC_START="$NODE_PATH/node-1.4.18-linux-amd64"
EXEC_START="$NODE_PATH/node-$VERSION-linux-amd64"
elif [ "$ARCH" = "aarch64" ]; then
EXEC_START="$NODE_PATH/node-1.4.18-linux-arm64"
EXEC_START="$NODE_PATH/node-$VERSION-linux-arm64"
elif [ "$ARCH" = "arm64" ]; then
EXEC_START="$NODE_PATH/node-1.4.18-darwin-arm64"
EXEC_START="$NODE_PATH/node-$VERSION-darwin-arm64"
else
echo "Unsupported architecture: $ARCH"
exit 1