Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sateetje authored Jul 7, 2021
1 parent 6a7555d commit 6676ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DEFAULTPATH="/mnt/proximax/"
SNAPSHOT="http://207.180.195.181/snapshot.tar.xz"

[[ ! -d $DEFAULTPATH ]] && { echo "Directory $DEFAULTPATH doesn't exist! Change reset.sh to use the right script." ; exit 1 ; }
[[ ! -d $DEFAULTPATH ]] && { echo "Directory $DEFAULTPATH doesn't exist! Change reset.sh to use the right directory." ; exit 1 ; }

cd $DEFAULTPATH

Expand Down Expand Up @@ -52,7 +52,7 @@ for NODEFOLDER in ${NODEFOLDERS[@]} ; do
docker-compose down

echo $(date +%T) "Delete data folder, this process can take up more than 1 hour"
find ./data -type f -delete
find ./data -type f -delete # Faster than 'rm -rf'

echo $(date +%T) "Extracting the snapshot, this process can take up more than 1 hour"
tar -xJf ../snapshot.tar.xz
Expand Down

0 comments on commit 6676ab5

Please sign in to comment.