Reset BTCPaySever env files if re-installed

This commit is contained in:
Taylor Helsper 2022-03-15 22:53:14 -05:00
parent 7a2eaf3600
commit 8b093a2f2a
2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,10 @@ elif [ "$APP" = "netdata" ]; then
systemctl stop netdata
docker rmi netdata/netdata || true
elif [ "$APP" = "btcpayserver" ]; then
cp /usr/share/btcpayserver/env /opt/mynode/btcpayserver/.env
cp /usr/share/btcpayserver/btcpay-env.sh /opt/mynode/btcpayserver/
cp /usr/share/btcpayserver/docker-compose.generated.yml /opt/mynode/btcpayserver/
cp /usr/share/btcpayserver/helpers.sh /opt/mynode/btcpayserver/
. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_remove
cd ~
elif [ "$APP" = "tor" ]; then

View File

@ -25,6 +25,10 @@ sync
if [ "$APP" = "bos" ]; then
npm uninstall -g balanceofsatoshis
elif [ "$APP" = "btcpayserver" ]; then
cp /usr/share/btcpayserver/env /opt/mynode/btcpayserver/.env
cp /usr/share/btcpayserver/btcpay-env.sh /opt/mynode/btcpayserver/
cp /usr/share/btcpayserver/docker-compose.generated.yml /opt/mynode/btcpayserver/
cp /usr/share/btcpayserver/helpers.sh /opt/mynode/btcpayserver/
. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_remove
cd ~
elif [ "$APP" = "btcrpcexplorer" ]; then