deactivate LNDg for repair in v1.11.1
This commit is contained in:
/rootzoll 2024-03-07 12:20:50 +01:00 committed by GitHub
parent e70c6863f9
commit 003230d137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 3 deletions

View file

@ -26,6 +26,7 @@
- Experimental: LNDK (runs on top of LND to help forward onion messages (BOLT 12)) [details](https://github.com/lndk-org/lndk) - Experimental: LNDK (runs on top of LND to help forward onion messages (BOLT 12)) [details](https://github.com/lndk-org/lndk)
- Fix: PyBlock 2.2.3 [details](https://github.com/curly60e/pyblock/blob/master/README.md) - Fix: PyBlock 2.2.3 [details](https://github.com/curly60e/pyblock/blob/master/README.md)
- Refactor: Wifi config with file on sd card - Refactor: Wifi config with file on sd card
- Deactivated for Repair: LNDg [details](https://github.com/raspiblitz/raspiblitz/issues/4418)
- Deprecated: Homer Dashboard (remove from SSH menus, config script will stay with possible future removal) - Deprecated: Homer Dashboard (remove from SSH menus, config script will stay with possible future removal)
- Deprecated: Bitcoinminds (remove from SSH menus, config script will stay with possible future removal) - Deprecated: Bitcoinminds (remove from SSH menus, config script will stay with possible future removal)
- Remove: ItchySats (unmaintained project / in consent with dev) - Remove: ItchySats (unmaintained project / in consent with dev)

View file

@ -60,7 +60,7 @@ if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ]; then
OPTIONS+=(ra 'LND RTL Webinterface' ${rtlWebinterface}) OPTIONS+=(ra 'LND RTL Webinterface' ${rtlWebinterface})
OPTIONS+=(ta 'LND ThunderHub' ${thunderhub}) OPTIONS+=(ta 'LND ThunderHub' ${thunderhub})
OPTIONS+=(la 'LND LIT (loop, pool, faraday)' ${lit}) OPTIONS+=(la 'LND LIT (loop, pool, faraday)' ${lit})
OPTIONS+=(gb 'LND LNDg (auto-rebalance, auto-fees)' ${lndg}) #OPTIONS+=(gb 'LND LNDg (auto-rebalance, auto-fees)' ${lndg})
OPTIONS+=(oa 'LND Balance of Satoshis' ${bos}) OPTIONS+=(oa 'LND Balance of Satoshis' ${bos})
OPTIONS+=(ya 'LND PyBLOCK' ${pyblock}) OPTIONS+=(ya 'LND PyBLOCK' ${pyblock})
OPTIONS+=(ha 'LND ChannelTools (Fund Rescue)' ${chantools}) OPTIONS+=(ha 'LND ChannelTools (Fund Rescue)' ${chantools})

View file

@ -391,7 +391,7 @@ elif [ "${abcd}" = "b" ]; then
# LNDg # LNDg
if [ "${lndg}" == "on" ]; then if [ "${lndg}" == "on" ]; then
echo "# changing the password for lndg" echo "# changing the password for lndg"
sudo -u lndg /home/lndg/lndg/.venv/bin/python /home/lndg/lndg/initialize.py -pw ${newPassword} /home/admin/config.scripts/bonus.lndg.sh set-password "${newPassword}"
fi fi
# mempool Explorer # mempool Explorer

View file

@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
# github users to ping on issues:
# allyourbankarebelongtous
# https://github.com/cryptosharks131/lndg # https://github.com/cryptosharks131/lndg
VERSION="1.7.0" VERSION="1.8.0"
# command info # command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
@ -128,6 +131,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
# INSTALL # INSTALL
############### ###############
echo "# LNDg user ..."
# create lndg user # create lndg user
sudo adduser --system --group --home /home/lndg lndg sudo adduser --system --group --home /home/lndg lndg
# add user to group with admin access to lnd # add user to group with admin access to lnd
@ -137,6 +142,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
# create symlink # create symlink
sudo ln -s /mnt/hdd/app-data/lnd/ /home/lndg/.lnd sudo ln -s /mnt/hdd/app-data/lnd/ /home/lndg/.lnd
echo "# LNDg download and install ..."
# download and install # download and install
sudo -u lndg git clone https://github.com/cryptosharks131/lndg.git /home/lndg/lndg/ sudo -u lndg git clone https://github.com/cryptosharks131/lndg.git /home/lndg/lndg/
cd /home/lndg/lndg/ || exit 1 cd /home/lndg/lndg/ || exit 1
@ -145,9 +152,13 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo -u lndg virtualenv -p python3 .venv sudo -u lndg virtualenv -p python3 .venv
sudo -u lndg .venv/bin/pip install -r requirements.txt sudo -u lndg .venv/bin/pip install -r requirements.txt
PASSWORD_B=$(sudo cat /mnt/hdd/bitcoin/bitcoin.conf | grep rpcpassword | cut -c 13-) PASSWORD_B=$(sudo cat /mnt/hdd/bitcoin/bitcoin.conf | grep rpcpassword | cut -c 13-)
echo "# LNDg initialize.py ..."
sudo -u lndg .venv/bin/python initialize.py -pw $PASSWORD_B sudo -u lndg .venv/bin/python initialize.py -pw $PASSWORD_B
echo "# LNDg jobs.py ..."
sudo -u lndg .venv/bin/python jobs.py sudo -u lndg .venv/bin/python jobs.py
echo "# LNDg database ..."
# set database path to HDD data so that its survives updates and migrations # set database path to HDD data so that its survives updates and migrations
# first check and see if a database exists # first check and see if a database exists
isDatabase=$(sudo ls /mnt/hdd/app-data/lndg/data/db.sqlite3 2>/dev/null | grep -c 'db.sqlite3') isDatabase=$(sudo ls /mnt/hdd/app-data/lndg/data/db.sqlite3 2>/dev/null | grep -c 'db.sqlite3')
@ -221,6 +232,8 @@ if __name__ == '__main__':
# gunicorn install # gunicorn install
################## ##################
echo "# LNDg gunicorn ..."
# first install and configure whitenoise # first install and configure whitenoise
sudo /home/lndg/lndg/.venv/bin/pip install whitenoise sudo /home/lndg/lndg/.venv/bin/pip install whitenoise
sudo rm /home/lndg/lndg/lndg/settings.py sudo rm /home/lndg/lndg/lndg/settings.py