diff --git a/update.sh b/update.sh index d5e875e..f7d1764 100644 --- a/update.sh +++ b/update.sh @@ -1,22 +1,48 @@ #!/bin/bash +# 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 "⏳Processing..." +sleep 10 # Add a 10-second delay + # Stop the ceremonyclient service service ceremonyclient stop -# Switch to the ~/ceremonyclient directory -cd ~/ceremonyclient +# Step 1:Download Binary +echo "⏳ Downloading New Release v1.4.18" +git pull +git checkout release +mv node-1.4.18-linux-amd64 node -# Fetch updates from the remote repository -git fetch origin -git merge origin +# Step 3:Re-Create Ceremonyclient Service +echo "⏳ Re-Creating Ceremonyclient Service" +sleep 2 # Add a 2-second delay +rm /lib/systemd/system/ceremonyclient.service +sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null < $HOME/ceremonyclient/node/node - -# Step 1:Make the file executable -echo "⏳ Making the Binary executable" -sleep 2 # Add a 2-second delay -chmod +x node +# Step 1:Download Binary +echo "⏳ Downloading New Release v1.4.18" +git pull +git checkout release +mv node-1.4.18-linux-amd64 node # Step 3:Re-Create Ceremonyclient Service echo "⏳ Re-Creating Ceremonyclient Service" @@ -37,11 +37,12 @@ EOF # Step 4:Start the ceremonyclient service echo "✅ Starting Ceremonyclient Service" sleep 2 # Add a 2-second delay +systemctl daemon-reload systemctl enable ceremonyclient service ceremonyclient start # See the logs of the ceremonyclient service -echo "🎉 Welcome to Quilibrium Ceremonyclient" +echo "🎉 Welcome to Quilibrium Ceremonyclient v1.4.18" 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 \ No newline at end of file