cl.backup: read key on BACKUP and improve output

This commit is contained in:
openoms 2021-10-11 14:39:24 +01:00
parent 4ead6f00d0
commit f8ee4896f2
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
2 changed files with 7 additions and 2 deletions

View file

@ -77,6 +77,9 @@ case $CHOICE in
/home/admin/config.scripts/cl.backup.sh cl-export-gui production $_temp
source $_temp 2>/dev/null
sudo rm $_temp 2>/dev/null
echo
echo "Press ENTER when finished downloading."
read key
;;
RESET)
@ -89,6 +92,7 @@ case $CHOICE in
sudo rm $_temp 2>/dev/null
echo
echo "The rescue file is stored on the SDcard named cl-rescue.*.tar.gz just in case."
echo
echo "The next step will overwrite the old C-lighthning $CHAIN wallet"
echo "Press ENTER to continue or CTRL+C to abort"
read key
@ -126,6 +130,7 @@ case $CHOICE in
sudo rm $_temp 2>/dev/null
echo
echo "The rescue file is stored on the SDcard named cl-rescue.*.tar.gz just in case."
echo
echo "The next step will overwrite the old C-lighthning $CHAIN wallet"
echo "Press ENTER to continue or CTRL+C to abort"
read key
@ -150,6 +155,7 @@ case $CHOICE in
sudo rm $_temp 2>/dev/null
echo
echo "The rescue file is stored on the SDcard named cl-rescue.*.tar.gz just in case."
echo
echo "The next step will overwrite the old C-lighthning $CHAIN wallet"
echo "Press ENTER to continue or CTRL+C to abort"
read key

View file

@ -81,8 +81,7 @@ if [ ${mode} = "cl-export" ]; then
fi
if [ ${mode} = "cl-export-gui" ]; then
# create lnd rescue file
echo "# Create the CL rescue file ..."
source <(/home/admin/config.scripts/cl.backup.sh cl-export)
if [ "${error}" != "" ]; then
echo "error='${error}'"