lnbits: fix LNBITS_DATA_FOLDER entry to .env

This commit is contained in:
openoms 2020-05-02 20:09:31 +01:00 committed by GitHub
parent 07d4c19df2
commit f4c60ae3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,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 lnbits:lnbits -R /mnt/hdd/app-data/LNBits
sudo bash -c "echo 'LNBITS_DATA_FOLDER=/mnt/hdd/app-data/LNBits' >> sudo /home/lnbits/lnbits/.env"
sudo bash -c "echo 'LNBITS_DATA_FOLDER=/mnt/hdd/app-data/LNBits' >> /home/lnbits/lnbits/.env"
# to the install
echo "# installing application dependencies"