Only copy lnbits data if it was installed

This commit is contained in:
Taylor Helsper 2020-07-06 21:13:45 -05:00
parent 6f910b62ed
commit 5ed0f49100

View File

@ -252,8 +252,10 @@ cp /usr/share/mynode/btc_rpc_explorer_env /opt/mynode/btc-rpc-explorer/.env
chown bitcoin:bitcoin /opt/mynode/btc-rpc-explorer/.env chown bitcoin:bitcoin /opt/mynode/btc-rpc-explorer/.env
# LNBits Config # LNBits Config
cp /usr/share/mynode/lnbits.env /opt/mynode/lnbits/.env if [ -d /opt/mynode/lnbits ]; then
chown bitcoin:bitcoin /opt/mynode/lnbits/.env cp /usr/share/mynode/lnbits.env /opt/mynode/lnbits/.env
chown bitcoin:bitcoin /opt/mynode/lnbits/.env
fi
# Update files that need RPC password (needed if upgrades overwrite files) # Update files that need RPC password (needed if upgrades overwrite files)