recursive own LNBits database

This commit is contained in:
/rootzoll
2020-02-11 10:49:10 +01:00
parent 888117c559
commit 27be14dc1d
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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