#2792 test quart remove

This commit is contained in:
rootzoll 2022-01-13 23:46:49 +01:00
parent fb08e306a1
commit a2543cfae0

View File

@ -462,7 +462,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo "# preparing env file"
sudo rm /home/lnbits/lnbits/.env 2>/dev/null
sudo -u lnbits touch /home/lnbits/lnbits/.env
sudo bash -c "echo 'QUART_APP=lnbits.app:create_app()' >> /home/lnbits/lnbits/.env"
sudo bash -c "echo 'LNBITS_FORCE_HTTPS=0' >> /home/lnbits/lnbits/.env"
# set database path to HDD data so that its survives updates and migrations
@ -482,14 +481,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo -u lnbits ./venv/bin/pip install -r requirements.txt
sudo -u lnbits ./venv/bin/pip install pylightning
# process assets
echo "# processing assets"
sudo -u lnbits ./venv/bin/quart assets
# update databases (if needed)
echo "# updating databases"
sudo -u lnbits ./venv/bin/quart migrate
# open firewall
echo
echo "*** Updating Firewall ***"