mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
adding data migration import option
This commit is contained in:
@@ -262,15 +262,17 @@ if [ ${setupStep} -eq 0 ]; then
|
|||||||
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
|
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
|
||||||
MENU="\nChoose how you want to setup your RaspiBlitz: \n "
|
MENU="\nChoose how you want to setup your RaspiBlitz: \n "
|
||||||
OPTIONS+=(BITCOIN "Setup BITCOIN and Lightning (DEFAULT)" \
|
OPTIONS+=(BITCOIN "Setup BITCOIN and Lightning (DEFAULT)" \
|
||||||
LITECOIN "Setup LITECOIN and Lightning (EXPERIMENTAL)" )
|
LITECOIN "Setup LITECOIN and Lightning (EXPERIMENTAL)" \
|
||||||
HEIGHT=11
|
MIGRATION "Upload a Migration File from old RaspiBlitz" )
|
||||||
|
HEIGHT=12
|
||||||
else
|
else
|
||||||
# start setup
|
# start setup
|
||||||
BACKTITLE="RaspiBlitz - Setup"
|
BACKTITLE="RaspiBlitz - Setup"
|
||||||
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
|
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
|
||||||
MENU="\nStart to setup your RaspiBlitz: \n "
|
MENU="\nStart to setup your RaspiBlitz: \n "
|
||||||
OPTIONS+=(BITCOIN "Setup BITCOIN and Lightning")
|
OPTIONS+=(BITCOIN "Setup BITCOIN and Lightning" \
|
||||||
HEIGHT=10
|
MIGRATION "Upload a Migration File from old RaspiBlitz")
|
||||||
|
HEIGHT=11
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -414,6 +416,11 @@ case $CHOICE in
|
|||||||
sudo /home/admin/XXshutdown.sh reboot
|
sudo /home/admin/XXshutdown.sh reboot
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
MIGRATION)
|
||||||
|
sudo /home/admin/config.scripts/blitz.migration.sh "import-gui"
|
||||||
|
echo "PRESS ENTER to continue/reboot"
|
||||||
|
sudo shutdown -r now
|
||||||
|
exit 0
|
||||||
X)
|
X)
|
||||||
lncli -h
|
lncli -h
|
||||||
echo "OK you now on the command line."
|
echo "OK you now on the command line."
|
||||||
|
@@ -127,6 +127,11 @@ if [ "$1" = "export-gui" ]; then
|
|||||||
# cleaning old migration files from blitz
|
# cleaning old migration files from blitz
|
||||||
sudo rm ${defaultZipPath}/*.tar.gz
|
sudo rm ${defaultZipPath}/*.tar.gz
|
||||||
|
|
||||||
|
# stopping lnd / bitcoin
|
||||||
|
echo "--> stopping services ..."
|
||||||
|
sudo systemctl stop lnd
|
||||||
|
sudo systemctl stop bitcoind
|
||||||
|
|
||||||
# create new migration file
|
# create new migration file
|
||||||
clear
|
clear
|
||||||
echo "--> creating blitz migration file ... (please wait)"
|
echo "--> creating blitz migration file ... (please wait)"
|
||||||
@@ -147,11 +152,11 @@ if [ "$1" = "export-gui" ]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Use password A to authenticate file transfere."
|
echo "Use password A to authenticate file transfere."
|
||||||
echo
|
echo
|
||||||
echo "BEWARE: Your Lightning node is now stopped. So its safe to backup the data and restore it"
|
echo "Your Lightning node is now stopped. After download press ENTER to shutdown your raspiblitz."
|
||||||
echo "later on - for example on a fresh RaspiBlitz. But once this Lightning node gets started"
|
echo "To complete the data migration follow then instructions on the github FAQ."
|
||||||
echo "again by 'sudo systemctl start lnd' or a reboot its not adviced to restore the backup file"
|
echo
|
||||||
echo "anymore because it cointains outdated channel data and can lead to loss of channel funds."
|
read key
|
||||||
|
/home/admin/XXshutdown.sh
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user