Merge pull request #3862 from rootzoll/dev

bugs fixed for v1.9.0 release
This commit is contained in:
/rootzoll
2023-05-22 23:31:46 +02:00
committed by GitHub
3 changed files with 9 additions and 6 deletions

View File

@@ -371,8 +371,8 @@ if [ "$1" = "status" ]; then
lndVersion=$(grep "lightninglabs/lnd" /mnt/storage/umbrel/docker-compose.yml 2>/dev/null | sed 's/.*lnd://' | sed 's/@.*//')
fi
echo "hddVersionBTC='${btcVersion}'"
echo "hddVersionLND='${clnVersion}'"
echo "hddVersionCLN='${lndVersion}'"
echo "hddVersionCLN='${clnVersion}'"
echo "hddVersionLND='${lndVersion}'"
elif [ ${isMyNodeHDD} -gt 0 ]; then
hddGotMigrationData="mynode"
elif [ ${isCitadelHDD} -gt 0 ]; then

View File

@@ -108,11 +108,12 @@ migrate_raspiblitz_conf () {
if [ "$1" = "migration-umbrel" ]; then
# make sure data drive is not (regular) mounted
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
if [ "${isMounted}" == "1" ]; then
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh unmount)
fi
# make sure data drive is mounted
# make sure data drive is temp-mounted
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
if [ "${isMounted}" != "1" ]; then
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount)
@@ -209,6 +210,8 @@ if [ "$1" = "migration-umbrel" ]; then
# LND since 0.5.0 umbrel uses a different data structure
echo "### LND ###"
if [ ${versionMajor} -eq 0 ] && [ ${versionMiner} -gt 4 ]; then
# rename lnd.conf (seems to be a think since umbrel 0.5.3)
sudo mv /mnt/hdd/umbrel/app-data/lightning/data/lnd/umbrel-lnd.conf /mnt/hdd/umbrel/app-data/lightning/data/lnd/lnd.conf 2>/dev/null
# new way - lnd might even not exist because its optional
lndExists=$(sudo ls /mnt/hdd/umbrel/app-data/lightning/data/lnd/lnd.conf | grep -c "lnd.conf")
if [ "${lndExists}" == "1" ]; then

View File

@@ -89,7 +89,7 @@ if [ "$1" = on ]; then
# https://github.com/lightningd/plugins/tree/master/backup#setup
echo "# Initialize the backup plugin"
cd ${plugindir}/backup/ || exit 1
sudo -u bitcoin poetry run ./backup-cli init --lightning-dir /home/bitcoin/.lightning/${CLNETWORK} \
sudo -u bitcoin poetry run /home/bitcoin/cl-plugins-available/plugins/backup/backup-cli init --lightning-dir /home/bitcoin/.lightning/${CLNETWORK} \
file:///home/bitcoin/${netprefix}lightningd.sqlite3.backup
if [ $(crontab -u admin -l | grep -c "backup-compact $CHAIN") -eq 0 ]; then
@@ -134,7 +134,7 @@ then
sudo systemctl stop ${netprefix}lightningd
# https://github.com/lightningd/plugins/tree/master/backup#restoring-a-backup
# poetry run ./backup-cli restore file:///mnt/external/location ~/.lightning/bitcoin/lightningd.sqlite3
# poetry run /home/bitcoin/cl-plugins-available/plugins/backup/backup-cli restore file:///mnt/external/location ~/.lightning/bitcoin/lightningd.sqlite3
# make sure to not overwrite old database
if sudo ls /home/bitcoin/.lightning/${CLNETWORK}/lightningd.sqlite3; then
@@ -149,7 +149,7 @@ then
# restore
cd ${plugindir}/backup/ || exit 1
sudo -u bitcoin poetry run ./backup-cli restore \
sudo -u bitcoin poetry run /home/bitcoin/cl-plugins-available/plugins/backup/backup-cli restore \
file:///home/bitcoin/${netprefix}lightningd.sqlite3.backup \
/home/bitcoin/.lightning/${CLNETWORK}/lightningd.sqlite3