add upgrade binary for amd64
This commit is contained in:
parent
50819bdd42
commit
22501cd954
@ -67,7 +67,7 @@ WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# Step 7:Start the ceremonyclient service
|
||||
echo "✅SStarting Ceremonyclient Service"
|
||||
echo "✅Starting Ceremonyclient Service"
|
||||
sleep 2 # Add a 2-second delay
|
||||
systemctl enable ceremonyclient
|
||||
service ceremonyclient start
|
||||
|
||||
33
profile/.bash_profile
Normal file
33
profile/.bash_profile
Normal file
@ -0,0 +1,33 @@
|
||||
# .bash_profile
|
||||
|
||||
# If .bash_profile exists, bash doesn't read .profile
|
||||
if [[ -f ~/.profile ]]; then
|
||||
. ~/.profile
|
||||
fi
|
||||
|
||||
# If the shell is interactive and .bashrc exists, get the aliases and functions
|
||||
if [[ $- == *i* && -f ~/.bashrc ]]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||
|
||||
|
||||
|
||||
alias e="exit"
|
||||
alias cm="ps -eo comm,pcpu --sort -pcpu | head -8; ps -eo comm,pmem --sort -pmem | head -8"
|
||||
alias st='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3'
|
||||
alias myip='curl icanhazip.com'
|
||||
alias wttr='curl wttr.in'
|
||||
|
||||
neofetch
|
||||
|
||||
|
||||
alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l && cd ~'
|
||||
alias node-info='cd ~/ceremonyclient/node && GOEXPERIMENT=arenas go run ./... -node-info && cd ~'
|
||||
alias db-console='cd ~/ceremonyclient/node && - GOEXPERIMENT=arenas go run ./... --db-console && cd ~'
|
||||
alias balance='cd ~/ceremonyclient/node && GOEXPERIMENT=arenas go run ./... -balance && cd ~'
|
||||
alias nlog='sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat'
|
||||
alias nstart='service ceremonyclient start'
|
||||
alias nrestart='service ceremonyclient restart'
|
||||
alias nstop='service ceremonyclient stop'
|
||||
@ -2,5 +2,5 @@
|
||||
|
||||
service ceremonyclient stop
|
||||
apt install unzip -y
|
||||
wget -qO- https://snapshots.cherryservers.com/quilibrium/store.zip > /tmp/store.zip && unzip -j -o /tmp/store.zip -d $HOME/ceremonyclient/node/.config/store && rm /tmp/store.zip
|
||||
rm -r $HOME/ceremonyclient/node/.config/store && wget -qO- https://snapshots.cherryservers.com/quilibrium/store.zip > /tmp/store.zip && unzip -j -o /tmp/store.zip -d $HOME/ceremonyclient/node/.config/store && rm /tmp/store.zip
|
||||
service ceremonyclient start
|
||||
47
updateV1.4.18.sh
Normal file
47
updateV1.4.18.sh
Normal file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 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
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/ceremonyclient/node
|
||||
ExecStart=/root/ceremonyclient/node/node
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# Step 4:Start the ceremonyclient service
|
||||
echo "✅ Starting Ceremonyclient Service"
|
||||
sleep 2 # Add a 2-second delay
|
||||
systemctl enable ceremonyclient
|
||||
service ceremonyclient start
|
||||
|
||||
# See the logs of the ceremonyclient service
|
||||
echo "🎉 Welcome to Quilibrium Ceremonyclient"
|
||||
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