diff --git a/.gitignore b/.gitignore index 65e9f5e..f984c43 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index f61b0c4..dbe92f1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install/install.sh b/install/install.sh index e94835d..743f75e 100644 --- a/install/install.sh +++ b/install/install.sh @@ -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" diff --git a/install/install_docker.sh b/install/install_docker.sh index 95b22ba..9cdc3d4 100644 --- a/install/install_docker.sh +++ b/install/install_docker.sh @@ -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" diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index 6ab1f69..87b7397 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -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) diff --git a/profile/.bash_profile b/profile/.bash_profile index d709cad..9a027cc 100644 --- a/profile/.bash_profile +++ b/profile/.bash_profile @@ -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 diff --git a/profile/.profile b/profile/.profile index 55323fe..749ff93 100644 --- a/profile/.profile +++ b/profile/.profile @@ -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 diff --git a/quilibrium_for_dummies.sh b/quilibrium_for_dummies.sh index e6da1c4..642a697 100644 --- a/quilibrium_for_dummies.sh +++ b/quilibrium_for_dummies.sh @@ -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" diff --git a/update.sh b/update.sh index dd1014a..4973ce8 100644 --- a/update.sh +++ b/update.sh @@ -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 diff --git a/updateDocker.sh b/updateDocker.sh index 9519488..3ca1a17 100644 --- a/updateDocker.sh +++ b/updateDocker.sh @@ -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" diff --git a/update_arm64.sh b/update_arm64.sh new file mode 100644 index 0000000..f4931b5 --- /dev/null +++ b/update_arm64.sh @@ -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 <