blitz.copychain: sudo to remove root owned file

This commit is contained in:
openoms 2021-09-14 09:15:42 +01:00
parent f78606a42e
commit e84b5cd6e5

View file

@ -352,7 +352,7 @@ if [ "$1" = "source" ]; then
do
# 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
# check result