From 3d606351b470a752c3be85d5d97a3d8cde67e918 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 23 Jan 2019 00:52:43 +0100 Subject: [PATCH] fix commands --- home.admin/50copyHDD.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home.admin/50copyHDD.sh b/home.admin/50copyHDD.sh index abb02e6..a42f7f9 100755 --- a/home.admin/50copyHDD.sh +++ b/home.admin/50copyHDD.sh @@ -7,8 +7,8 @@ source /home/admin/raspiblitz.info 2>/dev/null localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') # create bitcoin base directory and link with bitcoin user -sudo mkdir /mnt/hdd/bitcoin -sudo chown bitcoin:bitcoin /mnt/hdd/bitcoin +sudo mkdir /mnt/hdd/bitcoin 2>/dev/null +sudo chown bitcoin:bitcoin /mnt/hdd/bitcoin sudo ln -s /mnt/hdd/bitcoin /home/bitcoin/.bitcoin echo "" @@ -25,9 +25,9 @@ echo "blockchain data. You should see directories 'blocks', 'chainstate' & 'inde echo "Make sure the bitcoin client on that computer is stopped." echo "" echo "Copy, Paste and Execute the following commands - line by line:" -echo "sudo scp -R ./chainstate bitcoin@${localip}:/home/bitcoin/.bitcoin/chainstate" -echo "sudo scp -R ./indexes bitcoin@${localip}:/home/bitcoin/.bitcoin/indexes" -echo "sudo scp -R ./blocks bitcoin@${localip}:/home/bitcoin/.bitcoin/blocks" +echo "sudo scp -r ./chainstate bitcoin@${localip}:/home/bitcoin/.bitcoin/chainstate" +echo "sudo scp -r ./indexes bitcoin@${localip}:/home/bitcoin/.bitcoin/indexes" +echo "sudo scp -r ./blocks bitcoin@${localip}:/home/bitcoin/.bitcoin/blocks" echo "" echo "Every command above needs your SSH PASSWORD A to work and will take some time to transfer." echo "PRESS ENTER if all 3 transfers are done or if you dont care and you want to return to menu."