mirror of
https://github.com/Retropex/umbrel-apps.git
synced 2025-05-12 11:20:43 +02:00
Update LNDg to v1.9.0 (#1523)
Co-authored-by: nmfretz <nmfretz@gmail.com>
This commit is contained in:
parent
88d1b06ecb
commit
bf0c7226c5
0
lndg/data/db/.gitkeep
Normal file
0
lndg/data/db/.gitkeep
Normal file
0
lndg/data/logs/lndg-controller.log
Normal file
0
lndg/data/logs/lndg-controller.log
Normal file
@ -7,17 +7,18 @@ services:
|
||||
APP_PORT: $APP_LNDG_PORT
|
||||
|
||||
web:
|
||||
image: ghcr.io/cryptosharks131/lndg:v1.8.0@sha256:a3eda3a7592a8332e0bf3533378a5d2eec41fd0956d1ebc8c0b74ff109d7e631
|
||||
image: ghcr.io/cryptosharks131/lndg:v1.9.0@sha256:ef3d458c2d5daa99491390f0a18e5e9fc1114e82f74b0bb432c3b3d907e0dee7
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
init: true
|
||||
volumes:
|
||||
- ${APP_LIGHTNING_NODE_DATA_DIR}:/root/.lnd:ro
|
||||
- ${APP_DATA_DIR}:/lndg/data
|
||||
- ${APP_DATA_DIR}/data/db:/app/data
|
||||
- ${APP_DATA_DIR}/data/logs/lndg-controller.log:/var/log/lndg-controller.log
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- python initialize.py -net '${APP_BITCOIN_NETWORK}' -server '${APP_LIGHTNING_NODE_IP}:${APP_LIGHTNING_NODE_GRPC_PORT}' -pw '${APP_PASSWORD}' -d && supervisord && python manage.py runserver 0.0.0.0:${APP_LNDG_PORT}
|
||||
- python initialize.py -net '${APP_BITCOIN_NETWORK}' -rpc '${APP_LIGHTNING_NODE_IP}:${APP_LIGHTNING_NODE_GRPC_PORT}' -pw '${APP_PASSWORD}' -wn && python controller.py runserver 0.0.0.0:${APP_LNDG_PORT} > /var/log/lndg-controller.log 2>&1
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: ${APP_LNDG_IP}
|
||||
|
50
lndg/hooks/pre-start
Executable file
50
lndg/hooks/pre-start
Executable file
@ -0,0 +1,50 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# This script checks for existence of data/ data/db and data/logs directories and creates them + sets correct permissions if they don't exist
|
||||
# If db.sqlite3 and lndg-controller.log exist in main app dir, then we move them to their respective new locations and do not change permissions (lndg runs as root)
|
||||
# This will be the case for installs that are updating from pre 1.9.0
|
||||
|
||||
# App directory is one level up from this script
|
||||
APP_DIR="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"
|
||||
APP_DATA_DIR="${APP_DIR}/data"
|
||||
APP_DATA_DB_DIR="${APP_DATA_DIR}/db"
|
||||
APP_DATA_LOGS_DIR="${APP_DATA_DIR}/logs"
|
||||
DESIRED_OWNER="1000:1000"
|
||||
|
||||
set_correct_permissions() {
|
||||
local -r path="${1}"
|
||||
|
||||
if [[ -d "${path}" ]]; then
|
||||
owner=$(stat -c "%u:%g" "${path}")
|
||||
|
||||
if [[ "${owner}" != "${DESIRED_OWNER}" ]]; then
|
||||
chown -R "${DESIRED_OWNER}" "${path}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
create_directory_if_not_exists() {
|
||||
local -r dir="${1}"
|
||||
if [[ ! -d "${dir}" ]]; then
|
||||
mkdir -p "${dir}"
|
||||
set_correct_permissions "${dir}"
|
||||
fi
|
||||
}
|
||||
|
||||
move_file_if_exists() {
|
||||
local -r src="${1}"
|
||||
local -r dest="${2}"
|
||||
if [[ -f "${src}" ]]; then
|
||||
mv "${src}" "${dest}"
|
||||
fi
|
||||
}
|
||||
|
||||
# Create directories if they don't exist
|
||||
create_directory_if_not_exists "${APP_DATA_DIR}"
|
||||
create_directory_if_not_exists "${APP_DATA_DB_DIR}"
|
||||
create_directory_if_not_exists "${APP_DATA_LOGS_DIR}"
|
||||
|
||||
# Move files if they exist
|
||||
move_file_if_exists "${APP_DIR}/db.sqlite3" "${APP_DATA_DB_DIR}/db.sqlite3"
|
||||
move_file_if_exists "${APP_DIR}/lndg-controller.log" "${APP_DATA_LOGS_DIR}/lndg-controller.log"
|
@ -2,7 +2,7 @@ manifestVersion: 1
|
||||
id: lndg
|
||||
category: bitcoin
|
||||
name: LNDg
|
||||
version: "1.8.0"
|
||||
version: "1.9.0"
|
||||
tagline: Analyze and automate your Lightning node management
|
||||
description: LNDg is your command center for running a profitable and efficient
|
||||
routing node. From quickly viewing your node's health, automated rebalancing,
|
||||
@ -22,18 +22,12 @@ path: ""
|
||||
defaultUsername: lndg-admin
|
||||
deterministicPassword: true
|
||||
releaseNotes: >-
|
||||
- Auto-Refreshing dashboard (optional)
|
||||
- Set inbound fees from /advanced
|
||||
|
||||
- Trading page for setup and sale of secrets
|
||||
- Monitor inbound fees in your forwards
|
||||
|
||||
- Logs page to easily check on backend processes
|
||||
- Added consolidate UTXOs button to /balances
|
||||
|
||||
- Improvements to the Auto-Fee logic
|
||||
|
||||
- Fee bump tool added for pending sweeps
|
||||
|
||||
- Recycle connections with expiring htlcs within 13 blocks
|
||||
|
||||
- And more... Full details can be found here: https://github.com/cryptosharks131/lndg/releases/tag/v1.8.0
|
||||
- And more... Full details can be found here: https://github.com/cryptosharks131/lndg/releases/tag/v1.9.0
|
||||
submitter: cryptosharks131
|
||||
submission: https://github.com/getumbrel/umbrel/pull/1189
|
||||
|
Loading…
Reference in New Issue
Block a user