Merge pull request #16 from 0xOzgur/v1.4.19

V1.4.19 updates
This commit is contained in:
0xOzgur 2024-06-08 13:58:10 +03:00 committed by GitHub
commit c7ae28405a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 84 additions and 30 deletions

3
.gitignore vendored
View File

@ -2,6 +2,9 @@ ssh.bat
visibility/
visibility/visibility.py
visibility/peerlist.xml
quilibrium_for_pros.sh
backup_ozgur.sh
backup.sh
backup/backup.sh
backup/backup_ozgur.sh
quilibrium_for_pros.sh

View File

@ -18,14 +18,14 @@ After first run, when you need to reach your node, you need to run only;
**Autoinstaller Script for Quilibrium as a Service**
Use below command to install v1.4.18
Use below command to install v1.4.19
wget -O - https://raw.githubusercontent.com/0xOzgur/QuilibriumTools/main/install/install_quilibrium_service.sh | bash
**Autoupdater**
If you need to update your node from previous version to 1.4.18, apply below command
If you need to update your node from previous version to 1.4.19, apply below command
wget -O - https://raw.githubusercontent.com/0xOzgur/QuilibriumTools/main/update.sh | bash

View File

@ -55,10 +55,10 @@ sudo sysctl -p
# Installing Go 1.20.14
wget https://go.dev/dl/go1.20.14.linux-amd64.tar.gz
sudo tar -xvf go1.20.14.linux-amd64.tar.gz || { echo "Failed to extract Go! Exiting..."; exit_message; exit 1; }
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
sudo tar -xvf go1.22.4.linux-amd64.tar.gz || { echo "Failed to extract Go! Exiting..."; exit_message; exit 1; }
sudo mv go /usr/local || { echo "Failed to move go! Exiting..."; exit_message; exit 1; }
sudo rm go1.20.14.linux-amd64.tar.gz || { echo "Failed to remove downloaded archive! Exiting..."; exit_message; exit 1; }
sudo rm go1.22.4.linux-amd64.tar.gz || { echo "Failed to remove downloaded archive! Exiting..."; exit_message; exit 1; }
# Step 4: Set Go environment variables
@ -116,7 +116,7 @@ else
done
fi
cd ~/ceremonyclient/
git checkout release
git checkout release-cdn
# Build Ceremonyclient qClient
echo "⏳Building qCiient"

View File

@ -55,12 +55,12 @@ echo "⏳Downloading Ceremonyclient"
sleep 2 # Add a 2-second delay
git clone https://source.quilibrium.com/quilibrium/ceremonyclient.git
cd ~/ceremonyclient
git checkout release
git checkout release-cdn
# Step 7:Build Docker Container
echo "⏳Building Ceremonyclient Container"
sleep 2 # Add a 2-second delay
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium:1.4.18 .
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium:1.4.19 .
# Step 8:Run Ceremonyclient Container
echo "✅Running Ceremonyclient Container"

View File

@ -92,10 +92,10 @@ else
fi
cd ~/ceremonyclient/
git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git
git checkout release
git checkout release-cdn
# Set the version number
VERSION="1.4.18"
VERSION="1.4.19"
# Get the system architecture
# ARCH=$(uname -m)

View File

@ -28,15 +28,15 @@ OS=$(uname -s)
# Determine the node binary name based on the architecture and OS
if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY='node-1.4.18-linux-amd64'
NODE_BINARY='node-1.4.19-linux-amd64'
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY='node-1.4.18-darwin-amd64'
NODE_BINARY='node-1.4.19-darwin-amd64'
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY='node-1.4.18-linux-arm64'
NODE_BINARY='node-1.4.19-linux-arm64'
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY='node-1.4.18-darwin-arm64'
NODE_BINARY='node-1.4.19-darwin-arm64'
fi
fi

View File

@ -24,15 +24,15 @@ OS=$(uname -s)
# Determine the node binary name based on the architecture and OS
if [ "$ARCH" = "x86_64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY='node-1.4.18-linux-amd64'
NODE_BINARY='node-1.4.19-linux-amd64'
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY='node-1.4.18-darwin-amd64'
NODE_BINARY='node-1.4.19-darwin-amd64'
fi
elif [ "$ARCH" = "aarch64" ]; then
if [ "$OS" = "Linux" ]; then
NODE_BINARY='node-1.4.18-linux-arm64'
NODE_BINARY='node-1.4.19-linux-arm64'
elif [ "$OS" = "Darwin" ]; then
NODE_BINARY='node-1.4.18-darwin-arm64'
NODE_BINARY='node-1.4.19-darwin-arm64'
fi
fi

View File

@ -6,7 +6,7 @@ source ~/.bashrc
clear
# Set the version number
VERSION="1.4.18"
VERSION="1.4.19"
# Determine the ExecStart line based on the architecture
ARCH=$(uname -m)
@ -169,7 +169,7 @@ else
fi
cd ~/ceremonyclient/
git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git
git checkout release
git checkout release-cdn
@ -294,7 +294,7 @@ echo "⏳ Downloading New Release v$VERSION"
cd ~/ceremonyclient
git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git
git pull
git checkout release
git checkout release-cdn
# Get the current user's home directory
HOME=$(eval echo ~$HOME_DIR)
@ -417,7 +417,7 @@ while true; do
clear
echo "This script is made with ❤️ by 0xOzgur.eth @ https://quilibrium.space"
echo "Welcome to Quilibrium for Dummies!"
echo "
_____ _ _ _ _ _
/ ___ \ (_) (_) | (_)
@ -446,6 +446,8 @@ echo "
echo "Please install prerequisites first, then install node, lastly configure grpcurl."
echo "Do not forget to restart the node after configuration."
echo ""
echo "Quilibrium Version: $VERSION"
echo ""
echo "Please choose an option:"
echo ""
echo "1) Install Prerequisites 5) Check Visibility 9) Stop Node"

View File

@ -2,7 +2,7 @@
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth @ https://quilibrium.space"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.18!"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.19!"
echo "The script is prepared for Ubuntu machines. If you are using another operating system, please check the compatibility of the script."
echo "⏳Processing..."
sleep 5 # Add a 5-second delay
@ -14,11 +14,11 @@ apt install cpulimit -y
apt install gawk -y #incase it is not installed
# Step 1:Download Binary
echo "⏳ Downloading New Release v1.4.18"
echo "⏳ Downloading New Release v1.4.19"
cd ~/ceremonyclient
git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git || git remote set-url origin https://git.quilibrium-mirror.ch/agostbiro/ceremonyclient.git
git pull
git checkout release
git checkout release-cdn
# Get the current user's home directory
HOME=$(eval echo ~$HOME_DIR)
@ -72,7 +72,7 @@ sudo systemctl enable ceremonyclient
sudo service ceremonyclient start
# See the logs of the ceremonyclient service
echo "🎉 Welcome to Quilibrium Ceremonyclient v1.4.18"
echo "🎉 Welcome to Quilibrium Ceremonyclient v1.4.19"
echo "⏳ Please let it flow node logs at least 5 minutes then you can press CTRL + C to exit the logs."
sleep 5 # Add a 5-second delay
sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat

View File

@ -2,7 +2,7 @@
# Step 0: Welcome
echo "This script is made with ❤️ by 0xOzgur.eth"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.18!"
echo "⏳Enjoy and sit back while you are upgrading your Quilibrium Node to v1.4.19!"
echo "⏳Processing..."
sleep 10 # Add a 10-second delay
@ -10,15 +10,15 @@ sleep 10 # Add a 10-second delay
service ceremonyclient stop
# Step 1:Download Binary
echo "⏳ Downloading New Release v1.4.18"
echo "⏳ Downloading New Release v1.4.19"
cd ~/ceremonyclient
git pull
git checkout release
git checkout release-cdn
# Step 7:Build Docker Container
echo "⏳Building Ceremonyclient Container"
sleep 2 # Add a 2-second delay
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.18 .
docker build --build-arg GIT_COMMIT=$(git log -1 --format=%h) -t quilibrium -t quilibrium:1.4.19 .
# Step 8:Run Ceremonyclient Container
echo "✅Running Ceremonyclient Container"

49
update_arm64.sh Normal file
View File

@ -0,0 +1,49 @@
#!/bin/bash
# Set the version number
VERSION="1.4.18"
# Step 0: Welcome
echo "This script is made with ❤️ by https://quilibrium.space @ 0xOzgur.eth for scalepod.io"
sleep 2 # Add a 2-second delay
# Stop the ceremonyclient service
service ceremonyclient stop
# Step 1:Download Binary
cd ~/ceremonyclient
git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git
git pull
git checkout release-cdn
# Get the current user's home directory
HOME=$(eval echo ~$HOME_DIR)
# Use the home directory in the path
NODE_PATH="$HOME/ceremonyclient/node"
EXEC_START="$NODE_PATH/node-$VERSION-linux-arm64"
# Step 3:Re-Create Ceremonyclient Service
rm /lib/systemd/system/ceremonyclient.service
sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <<EOF
[Unit]
Description=Ceremony Client Go App Service
[Service]
Type=simple
Restart=always
RestartSec=5s
WorkingDirectory=$NODE_PATH
ExecStart=$EXEC_START
[Install]
WantedBy=multi-user.target
EOF
# Step 3: Update the ExecStart line in the Ceremonyclient Service file
# sudo sed -i "s|ExecStart=.*|ExecStart=$EXEC_START|" /lib/systemd/system/ceremonyclient.service
# Step 4:Start the ceremonyclient service
sudo systemctl daemon-reload
sudo systemctl enable ceremonyclient
sudo service ceremonyclient start