Commit Graph

7841 Commits

Author SHA1 Message Date
ChuckNorrison
1f0416bbbb
Add staticIP config and fix 127.0.0.1 (#3419)
* Add staticIP config and fix 127.0.0.1

Add possibility of a staticIP config in Raspiblitz.conf to override globalIP and publicIP detection.

Skip dyndns in case of static ip usage

if curl fails accidentaly it could result in the wrong IP. Only prefer if publicIP is empty.

* add FAQ entry

Co-authored-by: rootzoll <christian@geektank.de>
2022-12-10 14:53:29 +01:00
/rootzoll
d7d1c40866
#3505 lnbits PostgresSQl migration finalization (#3507)
* fix missing dependencies

* LNBits SQLite to PostgreSQL migration (#3411)

* LNBits SQLite to PostgreSQL migration

New installations with PostgreSQL configuration, existent data with SQLite.

convert script needs a full start of LNBits prior migrating the old sqlite db's.

User can migrate from raspiblitz menu.

* only fix postgres if it needs to

check for symbolik link of postgres default directory or desired postgres folder

btcpayserver and lnbits could use postgresql

new script to install or uninstall postgresql

* fix typos

* silent apt remove

* fix removed function postgresConfig

call bonus.postgresql.sh to setup PostgreSQL

* Support outdated installation

old installations should upgrade to new tag first

create new data directory /mnt/hdd/app-data/LNBits/data

* Improve migration

Make it a bit more user friendly and prepare for a worst case to revert the migration if something fails unexpectedly

make use of sync method for preparation

* Rework migration workflow

Cant wait for lnbits to start when ExecStartPre is used.

We need a full start of lnbits prior migration, so make use of lsof to check for ports and wait.

dont forget to start postgres service after installation. dont forget to stop postgres after uninstall

* Dont overwrite the backup file

if we start migrate again, the sqlite backup should not be overwritten with postgres data. Keep the backup file.

* add migrate message to menu

add the hint to revert migration manually after migrate script executed

* fix install and data directory

lnbits always needs a data directory

* clean up lnbits settings for migration

even if postgresql is already running, we can extract sqlite backup and start migrate

remove migrateMsg duplicate

* preserve database for reflash

drop database only for migrate, not for regular installations

* set blitz config for LNBits

fix drop database only for migrate, not for regular installations

* Add confirmation dialog and automatic revert

User needs to confirm the process, this will eliminate missclicks

add a migrate revert function to automatically revert if something unexpected happens

let the user call the function manually

* check conv.py on success or revert

if the conversion script fails, revert automatically

* Improve revert message

Do not print the revert hint message if current database is SQLite

* fix read config LNBitsDB

* fix unpack backup

Folder LNBits should never block the restore of backup. Happened after multiple migrations and revert.

* Wait for lnbits v0.9.5

Set commit version with fix for postgresql database and BIGINT for amounts for migrate

Can be set to v0.9.5 tag or above later

* improve migrate backup handling

revert to the current backup and not to the previous backup.

No need for the failed folder state

user message with backup file path

* check psql version once

* supress expected errors

if database exists

Co-authored-by: /rootzoll <christian@geektank.de>

* fix error output on status

Co-authored-by: ChuckNorrison <2964146+ChuckNorrison@users.noreply.github.com>
2022-12-10 00:04:15 +01:00
/rootzoll
9d23c63c38
#3313 & #3230 lndg final (#3506)
* Integrate LNDg to Raspiblitz (#3313)

* cl.hsmtool: fix password display

* add clearnet fallback for tor keys

* fix CLN wallet reset (#3296)

* cln: unify and improve the resetWallet function
previously the old config and channel database could have been left
behind when using SEEDRESTORE and FILERESTORE
* prompt to save the wallet password for backup

* change default branch to v1.8 (#3306)

* Adds install script for LNDg (https://github.com/cryptosharks131/lndg)

Install script creates user lndg and installs LNDg in /home/lndg/lndg,
uses systemd for the backend, and uses nginx and uwsgi for the gui.

Install script will check for tor and enable tor
if "run behind tor" is on.

Updates menu settings for easy access to the script settings

* Creates bonus.lndg.sh script for installing LNDg
Adds LNDg to list of apps in "SERVICES"
Adds LNDg to UPDATES when installed
Adds LNDg to menu when installed

Fixed typos/errors, tested and works!

* LNDg menu install. Added ssl, ssl over tor, and standardized nginx files. Tests Good.

* FAQ.cln: poncho, CLN cheatsheet, extract privkey

* #3286 fix loca IP

* fix #3312

* fix lnbits update options (#3307)

* Integrates LNDg to Raspiblitz
Fixes issues with python and python3 (see comments on PR).
Adds option to keep or delete database on both uninstall and install with existing database.

Fixes issues with python and python3 (see comments on PR).
Adds option to keep or delete database on both uninstall and install with existing database.

Update 00settingsMenuServices.sh

Update info menu for LNDg

Adds username and instructions on how to change username

* Update bonus.lndg.sh

* Install LNDg script
Forces yes on install question

* Update blitz.shutdown.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: Dipun Mistry <dipunm@gmail.com>
Co-authored-by: rootzoll <christian@geektank.de>

* added documentation

* #3230 change password B

* #3230 fix to version 1.4.0

Co-authored-by: allyourbankarebelongtous <100060902+allyourbankarebelongtous@users.noreply.github.com>
Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: Dipun Mistry <dipunm@gmail.com>
2022-12-09 21:49:44 +01:00
ChuckNorrison
72eac9e9c3
bos-telegram as service (#3446)
* bos-telegram as service

Add OPTIONS menu for balance of satoshi to setup telegram.

Asks for the connect code and installs service file

* improve first time setup

need to start bos telegram manually once to enter HTTP API token from telegram bot creation

* Rework BoS telegram menu

Improve setup experience

invoke bos telegram command from menu and make service install optional

* add changes

Co-authored-by: rootzoll <christian@geektank.de>
2022-12-08 23:10:58 +01:00
ChuckNorrison
4fd3247386
New Feature LightningTipBot (#3445)
* Add new Service LightningTipBot

A tip bot and Bitcoin Lightning wallet on Telegram based on LNBits

https://github.com/LightningTipBot/LightningTipBot

* mention config file in menu

* Add version in CHANGES

Co-authored-by: /rootzoll <christian@geektank.de>
2022-12-08 21:33:27 +01:00
/rootzoll
e19b5911cf
Merge CL Watchtower #3394 (#3501)
* Bonus script to install CLN Watchtower client rust-teos ("The Eye of Satoshi") (#3404)

* TEoS watchtower bonus install script

* Add Menu items

* add READ & CHANGES info

* On Purge, delete source and plugin

* Add sys pkg_dependecies

* Cleanup before clone

* Add cl plugins to _provision.sh and Info menu

Co-authored-by: rootzoll <christian@geektank.de>

* adapt info

* Add Watchtower info to menu

Co-authored-by: steepdawn974 <92274076+steepdawn974@users.noreply.github.com>
2022-12-08 12:56:30 +01:00
rek79
9fe1c47048
Improve localIP assignment and SSD detection (#3439) 2022-12-08 12:20:00 +01:00
ChuckNorrison
74ee085400
show localip after install webui (#3496)
When turning the webUI off & on again
2022-12-08 00:58:12 +01:00
openoms
4323dbbc49
CLN update to v22.11, install and update fixes (#3487)
* cln readd mako, update and testPR checks

* cln update to v22.11

* always use cl.hsmtool.sh unlock

* add git reset --hard to not show as v22.11-modded

* update RECKLESS upgrade message, run unlock after

* one line RECKLESS upgrade message

* add to CHANGES

* cln 22.11 PGPsigner cdecker A26D6D9FE088ED58

Co-authored-by: rootzoll <johndoe@example.com>
Co-authored-by: rootzoll <christian@geektank.de>
2022-12-08 00:29:00 +01:00
openoms
41e75d9d8f
fix bitcoin aliases, whitespaces and comments (#3483)
* fix bitcoin aliases, whitespaces and comments

* fix typo
2022-12-07 20:39:28 +01:00
openoms
c69b2603de
feat: add I2P (#3330)
* feat: add i2pd install script

* improve i2p install script

* add i2pd to SDcard image

* set i2pd value in the raspiblitz.conf

* improve detection and output

* fix typo

* exit 0 after addseednodes

* fix config and enable teh i2pd webconsole

* working install for amd64

* add checksum check

* better help message

* use confAdd for repeated keys

* add status option, passwordB protected webconsole

* separate i2pd install and setup

* change install check

* rename script & remove double on switch

* add i2p add node

* fallback.bitcoin.nodes

* kickstart only torv3

* fix Torv3 kickstart

* update bitnodes fallback list

* kickstart i2p from background

Co-authored-by: rootzoll <christian@geektank.de>
2022-12-07 20:26:10 +01:00
openoms
df74c87e2c
btcpay update to v1.7.1 (#3482)
btcpay update to v1.7.1
2022-12-06 18:55:31 +01:00
openoms
d715422e62
lnd update to v0.15.5-beta, litd update and LNC fix (#3490) 2022-12-06 17:46:22 +01:00
/rootzoll
0a697bb59a
#3427 sd card clean bloat (#3495) 2022-12-06 17:25:06 +01:00
/rootzoll
022d1eee4f
update bitcoin 24 (#3481) 2022-11-27 17:03:47 +01:00
openoms
dec77ac467
CLN 22.11 update (#3474)
* update cln backup plugin
* use database-upgrade=true if needed
2022-11-27 15:51:57 +00:00
/rootzoll
850173043a
allow code update from different branch (#3480) 2022-11-27 15:01:26 +01:00
/rootzoll
0302b7ce1c
#3376 update circuitbreaker v0.3.2 (#3479) 2022-11-26 23:19:20 +01:00
/rootzoll
79536c4b4b
#3370 update cl-rest to 0.9.0 (#3478) 2022-11-26 20:00:11 +01:00
/rootzoll
f1bba1de0e
simplify lnbits systemd exec line (#3477) 2022-11-26 18:02:51 +01:00
/rootzoll
7475898034
fix typo (#3475) (#3476)
Co-authored-by: Yure Andrade <115199230+YureAndrade@users.noreply.github.com>
2022-11-24 16:07:10 +01:00
TnTBass
8e3fef2144
Update README.md (#3472)
* Update README.md
2022-11-24 14:58:03 +01:00
/rootzoll
b8a9c84845
Update blitz.backupdevice.sh (#3467) (#3471)
Co-authored-by: cAP5L0CK <drummer7@yahoo.com>
2022-11-22 21:59:17 +01:00
ChuckNorrison
a23c5915a2
electrs update server_banner in config (#3464) 2022-11-22 21:31:10 +01:00
/rootzoll
5fb809c2ec
Electrum Server in Rust (electrs) v0.9.10 (#3470)
* more structural comments
* improve conf check
* Electrum Server in Rust (electrs) v0.9.10
2022-11-22 19:33:45 +01:00
/rootzoll
6dae0283de
Small Changes (#3469)
* more structural comments
* improve conf check
2022-11-22 19:27:25 +01:00
ChuckNorrison
7f05277f5f
blitzapi: fix permissions (#3466) 2022-11-21 22:00:18 +01:00
/rootzoll
6ef861ba0b
New sdcard base image & sd card build fixes (#3456)
- wrapt fix
- python3-mako
- Fix install issues with wrong hashes and python environment mismatch
- #3455 fix ExecStart path of blitzapi
2022-11-21 21:15:18 +01:00
steepdawn974
4ce743a939
Update cl.update.sh menu entries (#3459) 2022-11-21 20:15:59 +01:00
steepdawn974
53c5a8559d
Add mako to python-lib in build_sdcard.sh (#3442) 2022-11-17 20:17:51 +01:00
openoms
f5b1e65b30
Backup CLN emergency.recover file (#3393) 2022-11-17 18:11:56 +01:00
ChuckNorrison
cd77988ee8
update bos version 13.6.0 (#3450)
* update bos version 13.6.0
2022-11-17 14:05:34 +01:00
/rootzoll
f860c2b4ca
more testdev notes (#3452)
adding dev notes on branch protection
2022-11-17 13:26:28 +01:00
/rootzoll
e6089c560e
Adding info to dev notes (#3451) 2022-11-17 13:20:06 +01:00
ChuckNorrison
455ff74aee
Add commands confirmation message (#3444) 2022-11-16 18:21:10 +01:00
openoms
1f99ac5d0a
Testnets LNbits fix (#3422) 2022-11-16 18:00:35 +01:00
ChuckNorrison
5096a90461
homer fix missing local IP in menu (#3448) 2022-11-16 16:54:52 +01:00
Christoph Stenglein
8a35227d5d
dev: add codeowners file for branch protection (#3432) 2022-11-16 15:21:08 +01:00
rootzoll
4381e095cb #3361 fix link 2022-11-15 22:17:05 +01:00
Oliver Gugger
2fa6d25dc5
chantools update to v0.10.5 (#3347) 2022-11-15 21:55:25 +01:00
rootzoll
fcde75d792 script doc fix 2022-11-15 21:41:06 +01:00
openoms
0fc8e10167
lit update to v0.8.3-alpha (#3430) 2022-11-15 18:32:37 +01:00
Oliver Offing
3a25872f26 fix(bitcon.update): unary operator expected (#3365)
* fix(bitcon.update): unary operator expected
* Update home.admin/config.scripts/bitcoin.update.sh

Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
2022-11-15 16:39:23 +01:00
ChuckNorrison
5c1da4f19c electrs fix missing local IP in CONNECT view (#3438)
the local ip was not displayed correctly in ELECTRS->CONNECT menu
2022-11-14 18:42:33 +01:00
openoms
d9829c3348
nodejs update to the latest LTS v18.12.0 (#3387) 2022-11-09 19:38:55 +00:00
openoms
52952f3335
thunderhub to v0.13.16 w DISABLE_BALANCE_PUSHES (#3416) 2022-11-09 19:36:02 +00:00
ChuckNorrison
3e2fdb2b7b
mempool change logger from debug to info (#3426)
A lot of debug messages are flooding into the journal, this will make it less noisy
2022-11-09 11:00:17 +01:00
openoms
9aaaa6f00e
quote values to avoid flashing lines on LCD 2022-11-08 07:42:26 +00:00
Djo1e
af0d279e1b
Update configure boot options url (#3401) 2022-11-04 15:12:51 +00:00
Leonardo Papini
82b0bcc24d
Fix localIP and torAddress gathering (#3388)
* fix localIP gathering in btc-rpc-explorer.sh

* fix localIP gathering in homer.sh

* fix torAddress gathering in electrs.sh
2022-11-04 15:07:57 +00:00