diff --git a/CHANGES.md b/CHANGES.md index a95d98c96..b62ce4c4a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ - Update: LND v0.17.2-beta [details](https://github.com/lightningnetwork/lnd/releases/tag/v0.17.2-beta) - Update: Core Lightning v23.11 [details](https://github.com/ElementsProject/lightning/releases/tag/v23.11) - Update: BTCPayServer v1.11.7 [details](https://github.com/btcpayserver/btcpayserver/releases/tag/v1.11.7) +- Update: LNbits 0.11.2 [details](https://github.com/lnbits/lnbits/releases/tag/0.11.2) - 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) - Remove: ItchySats (unmaintained project / in consent with dev) @@ -436,4 +437,3 @@ Version 1.1 packs some first fixes and enhancements to make the RaspiBlitz more - Removed: FTP download option for blockchain For full details see issue list of [Release 1.1 Milestone](https://github.com/rootzoll/raspiblitz/milestone/3?closed=1). - diff --git a/home.admin/config.scripts/bonus.lnbits.sh b/home.admin/config.scripts/bonus.lnbits.sh index 19b52e8d8..f1c10baff 100644 --- a/home.admin/config.scripts/bonus.lnbits.sh +++ b/home.admin/config.scripts/bonus.lnbits.sh @@ -3,7 +3,7 @@ # https://github.com/lnbits/lnbits # https://github.com/lnbits/lnbits/releases -tag="0.10.10" +tag="0.11.2" VERSION="${tag}" # command info @@ -380,7 +380,8 @@ if [ "$1" = "status" ]; then echo "publicIP='${publicIP}'" # auth method is to call with a certain useer id - admin_userid=$(sudo cat /home/lnbits/lnbits/.super_user) + #admin_userid=$(sudo cat /home/lnbits/lnbits/.super_user) + admin_userid=$(sudo cat /mnt/hdd/app-data/LNBits/data/.super_user); echo "authMethod='/wallet?usr=${admin_userid}'" # check funding source @@ -532,7 +533,8 @@ if [ "$1" = "prestart" ]; then fi # protect the admin user id if exists - chmod 640 /home/lnbits/lnbits/.super_user 2>/dev/null + # chmod 640 /home/lnbits/lnbits/.super_user 2>/dev/null + chmod 640 /mnt/hdd/app-data/LNBits/data/.super_user 2>/dev/null echo "# OK: prestart finished" exit 0 # exit with clean code @@ -772,7 +774,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # config update # example: postgres://:@/ - sudo bash -c "echo 'LNBITS_DATABASE_URL=postgres://lnbits_user:raspiblitz@localhost:5432/lnbits_db' >> /home/lnbits/lnbits/.env" + sudo bash -c "echo 'LNBITS_DATABASE_URL=postgres://postgres:postgres@localhost:5432/lnbits_db' >> /home/lnbits/lnbits/.env" sudo bash -c "echo 'LNBITS_DATA_FOLDER=/mnt/hdd/app-data/LNBits/data' >> /home/lnbits/lnbits/.env" else echo "# install database: SQLite" @@ -1164,18 +1166,12 @@ if [ "$1" = "migrate" ]; then # create new backup sudo tar -cf /mnt/hdd/app-data/LNBits_sqlitedb_backup.tar -C /mnt/hdd/app-data LNBits/ - # update to expected tag - cd /home/lnbits/lnbits || exit 1 - # remove existent config for database sudo sed -i "/^LNBITS_DATABASE_URL=/d" /home/lnbits/lnbits/.env 2>/dev/null sudo sed -i "/^LNBITS_DATA_FOLDER=/d" /home/lnbits/lnbits/.env 2>/dev/null # restore sqlite database config sudo bash -c "echo 'LNBITS_DATA_FOLDER=/mnt/hdd/app-data/LNBits' >> /home/lnbits/lnbits/.env" - #sudo -u lnbits git checkout ${tag} - sudo -u lnbits git reset --hard 4f05c6c12e284d4a322a9041d19f66d01afa205b # good tested after BIGINT fix (#1135) - /home/admin/config.scripts/bonus.lnbits.sh sync || exit 1 # stop after sync was done sudo systemctl stop lnbits diff --git a/home.admin/config.scripts/bonus.postgresql.sh b/home.admin/config.scripts/bonus.postgresql.sh index 61ae25ebb..c5c923c04 100644 --- a/home.admin/config.scripts/bonus.postgresql.sh +++ b/home.admin/config.scripts/bonus.postgresql.sh @@ -81,6 +81,8 @@ if [ "$command" = "1" ] || [ "$command" = "on" ]; then exit 1 fi done + echo "Setting default password for postgres user" + sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres';" echo "OK PostgreSQL installed" else echo "FAIL - Was not able to install PostgreSQL" @@ -96,9 +98,9 @@ if [ "$command" = "0" ] || [ "$command" = "off" ]; then # setting value in raspiblitz config echo "*** REMOVING POSTGRESQL ***" - sudo apt remove -y postgresql sudo systemctl stop postgresql sudo systemctl disable postgresql + sudo apt remove -y postgresql echo "OK PostgreSQL removed." exit 0