From 09d4f244110135adb91d5d221b0e7295554cfdfb Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 13 May 2021 20:08:49 -0500 Subject: [PATCH] Re-install will patch LNDHub to resolve timeout issues --- rootfs/standard/usr/bin/mynode_post_upgrade.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index bf92f225..ccc5943a 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -416,6 +416,10 @@ if should_install_app "lndhub" ; then sudo -u bitcoin npm install --only=production sudo -u bitcoin ln -s /home/bitcoin/.lnd/tls.cert tls.cert sudo -u bitcoin ln -s /home/bitcoin/.lnd/data/chain/bitcoin/mainnet/admin.macaroon admin.macaroon + + sed -i "s|updateDescribeGraph();|//updateDescribeGraph();|g" /opt/mynode/LndHub/controllers/api.js + sed -i "s|setInterval(updateDescribeGraph|//setInterval(updateDescribeGraph|g" /opt/mynode/LndHub/controllers/api.js + echo $LNDHUB_VERSION > $LNDHUB_VERSION_FILE fi cd ~