mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
blitz.copychain: sudo to remove root owned file
This commit is contained in:
@@ -352,7 +352,7 @@ if [ "$1" = "source" ]; then
|
|||||||
do
|
do
|
||||||
|
|
||||||
# transfere blockchain data
|
# transfere blockchain data
|
||||||
rm -f ./transferred.rsync
|
sudo rm -f ./transferred.rsync
|
||||||
sudo sshpass -p "${targetPassword}" rsync -avhW -e 'ssh -o StrictHostKeyChecking=no -p 22' --info=progress2 --log-file=./transferred.rsync ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
|
sudo sshpass -p "${targetPassword}" rsync -avhW -e 'ssh -o StrictHostKeyChecking=no -p 22' --info=progress2 --log-file=./transferred.rsync ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
|
||||||
|
|
||||||
# check result
|
# check result
|
||||||
|
Reference in New Issue
Block a user