#1179 test new transfere dialog

This commit is contained in:
rootzoll 2020-06-17 20:30:06 +02:00
parent 983a4839ee
commit 4e3250e2bb
2 changed files with 17 additions and 7 deletions

View File

@ -142,6 +142,7 @@ if [ "${CHOICE}" = "BLITZ" ]; then
echo "Follow the given instructions ..."
echo ""
echo "The local IP if this RaspiBlitz is: ${localip}"
echo ""
echo "If you get asked for a script - its this line:"
echo "sudo rsync -avhW --progress ./chainstate ./blocks bitcoin@${localip}:/mnt/hdd/bitcoin"
fi

View File

@ -49,17 +49,26 @@ RaspiBlitz image to your SD card.
copyHost()
{
clear
echo
echo "# *** Copy Blockchain Source Modus ***"
sed -i "s/^state=.*/state=copysource/g" /home/admin/raspiblitz.info
echo "# stopping servives ..."
sudo systemctl stop lnd
sudo systemctl stop ${network}d
cd /mnt/hdd/${network}
echo
echo "*** Copy Blockchain Source Modus ***"
echo "Your RaspiBlitz has now stopped LND and ${network}d ..."
echo "1. Use command to change to source dir: cd /mnt/hdd/$network"
echo "2. Then run the script given by the other RaspiBlitz in Terminal"
echo "3. When you are done - Restart RaspiBlitz: sudo shutdown -r now"
echo
echo "# install dependencies ..."
sudo apt-get install -y sshpass
echo "# get IP of RaspiBlitz to copy to ..."
targetIP=$(whiptail --inputbox "\nPlease enter the LOCAL IP of the\nRaspiBlitz to copy Blockchain to:" 10 38 "" --title " Target IP " --backtitle "RaspiBlitz - Copy Blockchain" 3>&1 1>&2 2>&3)
targetPassword=$(whiptail --passwordbox "\nPlease enter the PASSWORD A of the\nRaspiBlitz to copy Blockchain to:" 10 38 "" --title "Target Password" --backtitle "RaspiBlitz - Copy Blockchain" 3>&1 1>&2 2>&3)
sudo sshpass -p "${targetPassword}" rsync -avhW --progress ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
#echo "Your RaspiBlitz has now stopped LND and ${network}d ..."
#echo "1. Use command to change to source dir: cd /mnt/hdd/$network"
#echo "2. Then run the script given by the other RaspiBlitz in Terminal"
#echo "3. When you are done - Restart RaspiBlitz: sudo shutdown -r now"
#echo
exit 99
}