Move btcpayserver .bashrc init.

This commit is contained in:
Derek Smith 2023-04-07 13:59:14 -04:00
parent 9576b56ae8
commit 7731a1fd6e
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -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