mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Only copy lnbits data if it was installed
This commit is contained in:
parent
6f910b62ed
commit
5ed0f49100
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user