From 50819bdd423893242313e2e6fe5c390820f5a49a Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Thu, 23 May 2024 04:03:08 +0300 Subject: [PATCH] code rewritted --- snapshot.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/snapshot.sh b/snapshot.sh index 9b9373f..62d4c90 100644 --- a/snapshot.sh +++ b/snapshot.sh @@ -1,11 +1,6 @@ #!/bin/bash service ceremonyclient stop -apt install unzip -cd ~/ceremonyclient/node/.config -mv store storeold -wget https://snapshots.cherryservers.com/quilibrium/store.zip -unzip store.zip -rm store.zip -rm -rf storeold -service ceremonyclient start +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 +service ceremonyclient start \ No newline at end of file