fix variable names of clnrescue

This commit is contained in:
openoms 2021-09-07 15:00:52 +01:00
parent c9beeab72f
commit 6214e81f3b
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
3 changed files with 4 additions and 4 deletions

View file

@ -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}

View file

@ -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

View file

@ -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