From 8b1855ba3a6ce09305fc5d3b7bd8a7b2c71d5acd Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 3 May 2022 23:43:00 -0500 Subject: [PATCH] Set default lndg credentials --- SYSTEM_NOTES.md | 4 ++++ rootfs/standard/usr/bin/mynode-local-upgrade | 3 +++ .../usr/share/mynode_apps/lndg/scripts/install_lndg.sh | 1 + rootfs/standard/var/pynode/application_info.py | 5 ++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/SYSTEM_NOTES.md b/SYSTEM_NOTES.md index 92a7422e..785102ab 100644 --- a/SYSTEM_NOTES.md +++ b/SYSTEM_NOTES.md @@ -55,3 +55,7 @@ have support or patial support. - Specter authentication is off by default, but it will store and use its own password. - It is highly recommended to enable authentication. + +## LNDg + +- The default credentials for LNDg are "admin" / "bolt" \ No newline at end of file diff --git a/rootfs/standard/usr/bin/mynode-local-upgrade b/rootfs/standard/usr/bin/mynode-local-upgrade index 12882a7a..210e14a7 100755 --- a/rootfs/standard/usr/bin/mynode-local-upgrade +++ b/rootfs/standard/usr/bin/mynode-local-upgrade @@ -42,6 +42,9 @@ echo "Syncing filesystem..." sleep 1 sync +# Init Dynamic Apps +mynode-manage-apps init + # Reload systemd files systemctl daemon-reload diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh index 36860acf..11ebcf75 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh +++ b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh @@ -12,6 +12,7 @@ virtualenv -p python3 .venv # Patch to store file locally sed -i 's|/usr/local/etc/supervisord.conf|/opt/mynode/lndg/.venv/supervisord.conf|g' initialize.py +sed -i 's|lndg-admin|admin|g' initialize.py # Init LNDg .venv/bin/python initialize.py --lnddir=/mnt/hdd/mynode/lnd --adminpw=bolt -wn -dx -sd --sduser=lndg diff --git a/rootfs/standard/var/pynode/application_info.py b/rootfs/standard/var/pynode/application_info.py index 108a5186..b63c4157 100644 --- a/rootfs/standard/var/pynode/application_info.py +++ b/rootfs/standard/var/pynode/application_info.py @@ -2,6 +2,7 @@ from bitcoin_info import * from lightning_info import * from electrum_info import * from device_info import * +from drive_info import * from systemctl_info import * from utilities import * import copy @@ -603,13 +604,15 @@ def init_dynamic_app(app_info): log_message(" TODO: Build dockerfile???") log_message(" TODO: Install dockerfile???") + # Setup tor hidden service + log_message(" TODO: Setup Tor Hidden service") log_message(" Done.") def init_dynamic_apps(): # Ensure external drive is mounted if not is_mynode_drive_mounted(): - log_message(" ERROR: Data drive not mounted") + log_message(" ERROR: Data drive not mounted. Cannot Init Dynamic Apps.") return # Loop over each app