From 7731a1fd6eb9a2e76ed4f3aa581923bc1262e35d Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Fri, 7 Apr 2023 13:59:14 -0400 Subject: [PATCH] Move btcpayserver .bashrc init. --- btcpayserver/go.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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