mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
fix variable names of clnrescue
This commit is contained in:
parent
c9beeab72f
commit
6214e81f3b
3 changed files with 4 additions and 4 deletions
|
@ -365,8 +365,8 @@ if [ "${lightning}" == "cln" ]; then
|
||||||
# OLD WALLET FROM CLIGHTNING RESCUE
|
# OLD WALLET FROM CLIGHTNING RESCUE
|
||||||
if [ "${clnrescue}" != "" ]; then
|
if [ "${clnrescue}" != "" ]; then
|
||||||
|
|
||||||
echo "Restore CLN data from uploaded rescue file ${lndrescue} ..." >> ${logFile}
|
echo "Restore CLN data from uploaded rescue file ${clnrescue} ..." >> ${logFile}
|
||||||
source <(sudo /home/admin/config.scripts/cln.backup.sh cln-import ${lndrescue})
|
source <(sudo /home/admin/config.scripts/cln.backup.sh cln-import ${clnrescue})
|
||||||
if [ "${error}" != "" ]; then
|
if [ "${error}" != "" ]; then
|
||||||
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
||||||
sed -i "s/^message=.*/message='setup: cln import backup failed'/g" ${infoFile}
|
sed -i "s/^message=.*/message='setup: cln import backup failed'/g" ${infoFile}
|
||||||
|
|
|
@ -245,7 +245,7 @@ if [ ${mode} = "cln-import-gui" ]; then
|
||||||
|
|
||||||
# in setup scenario the final import is happening during provison
|
# in setup scenario the final import is happening during provison
|
||||||
if [ "${scenario}" == "setup" ]; then
|
if [ "${scenario}" == "setup" ]; then
|
||||||
# just add lndrescue filename to give file
|
# just add clnrescue filename to give file
|
||||||
echo "# result in: ${RESULTFILE} (remember to make clean delete once processed)"
|
echo "# result in: ${RESULTFILE} (remember to make clean delete once processed)"
|
||||||
echo "clnrescue='${filename}'" >> $RESULTFILE
|
echo "clnrescue='${filename}'" >> $RESULTFILE
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -106,7 +106,7 @@ if [ ${uploadRESCUE} -eq 1 ]; then
|
||||||
|
|
||||||
# if user canceled upload
|
# if user canceled upload
|
||||||
if [ "${clnrescue}" == "" ]; then
|
if [ "${clnrescue}" == "" ]; then
|
||||||
# signal cancel to the calling script by exit code (3 = exit on lndrescue)
|
# signal cancel to the calling script by exit code (3 = exit on clnrescue)
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue