update
This commit is contained in:
parent
22501cd954
commit
e0b368394f
52
update.sh
52
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 <<EOF
|
||||
[Unit]
|
||||
Description=Ceremony Client Go App Service
|
||||
|
||||
# Switch to the ~/ceremonyclient/node directory
|
||||
cd ~/ceremonyclient/node
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
ExecStart=/root/ceremonyclient/node/node
|
||||
|
||||
# Clean and reinstall node
|
||||
GOEXPERIMENT=arenas go clean -v -n -a ./...
|
||||
rm /root/go/bin/node
|
||||
GOEXPERIMENT=arenas go install ./...
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# Start the ceremonyclient service
|
||||
service ceremonyclient start
|
||||
# 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 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
|
||||
@ -1,19 +1,19 @@
|
||||
#!/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
|
||||
|
||||
# Step 0:Download Binary
|
||||
echo "⏳ Downloading Binary"
|
||||
sleep 2 # Add a 2-second delay
|
||||
cd ~/ceremonyclient/node
|
||||
|
||||
wget -O- https://github.com/QuilibriumNetwork/ceremonyclient/releases/download/v1.4.18/node-1.4.18-linux-amd64.bin > $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
|
||||
Loading…
Reference in New Issue
Block a user