Fix lnbits service file

This commit is contained in:
Taylor Helsper 2020-06-30 21:36:55 -05:00
parent ad0c92bd19
commit b93644fb3d

View File

@ -10,7 +10,6 @@ After=bitcoind.service lnd.service
ExecStartPre=/usr/bin/is_not_shutting_down.sh ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_lnd.sh ExecStartPre=/usr/bin/wait_on_lnd.sh
ExecStartPre=/bin/sh -c 'cd /opt/mynode/lnbits && /usr/local/bin/pipenv run flask migrate' ExecStartPre=/bin/sh -c 'cd /opt/mynode/lnbits && /usr/local/bin/pipenv run flask migrate'
sudo -u bitcoin pipenv run flask migrate || true
Environment=FLASK_ENV=development Environment=FLASK_ENV=development
WorkingDirectory=/opt/mynode/lnbits WorkingDirectory=/opt/mynode/lnbits