diff --git a/btcpayserver/go.sh b/btcpayserver/go.sh index 4f60cf3..1d70c17 100755 --- a/btcpayserver/go.sh +++ b/btcpayserver/go.sh @@ -3,6 +3,13 @@ set -eu cd "$(dirname "$0")" +if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then + # send an updated ~/.bashrc so we have quicker access to cli tools + scp ./bashrc.txt "ubuntu@$BTCPAY_FQDN:$REMOTE_HOME/.bashrc" + ssh "$BTCPAY_FQDN" "chown ubuntu:ubuntu $REMOTE_HOME/.bashrc" + ssh "$BTCPAY_FQDN" "chmod 0664 $REMOTE_HOME/.bashrc" +fi + export DOCKER_HOST="ssh://ubuntu@$BTCPAY_FQDN" if [ "$STOP_SERVICES" = true ]; then