mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
recursive own LNBits database
This commit is contained in:
@@ -434,6 +434,7 @@ if [ ${#network} -gt 0 ] && [ ${#chain} -gt 0 ]; then
|
||||
if [ "${LNBits}" = "on" ]; then
|
||||
echo "updating macaroons for LNBits fresh on start" >> $logFile
|
||||
sudo -u admin /home/admin/config.scripts/bonus.lnbits.sh write-macaroons >> $logFile
|
||||
sudo chown admin:admin -R /mnt/hdd/app-data/LNBits
|
||||
fi
|
||||
|
||||
else
|
||||
|
@@ -121,7 +121,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
|
||||
# set database path to HDD data so that its survives updates and migrations
|
||||
sudo mkdir /mnt/hdd/app-data/LNBits 2>/dev/null
|
||||
sudo chown admin:admin /mnt/hdd/app-data/LNBits
|
||||
sudo chown admin:admin -R /mnt/hdd/app-data/LNBits
|
||||
echo "LNBITS_DATA_FOLDER=/mnt/hdd/app-data/LNBits" >> /home/admin/lnbits/.env
|
||||
|
||||
# make sure in settings file LND is set as funding source
|
||||
|
Reference in New Issue
Block a user