From 3bc86d8aa3ec1f91925b0524924075ac4af7905e Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Sun, 25 Dec 2022 13:04:48 -0500 Subject: [PATCH] Added comment + refactor. --- deployment/btcpayserver/stub_btcpay_setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/btcpayserver/stub_btcpay_setup.sh b/deployment/btcpayserver/stub_btcpay_setup.sh index 089cf11..7973988 100755 --- a/deployment/btcpayserver/stub_btcpay_setup.sh +++ b/deployment/btcpayserver/stub_btcpay_setup.sh @@ -85,8 +85,10 @@ ssh "$BTCPAY_FQDN" "chmod 0664 $REMOTE_HOME/.bashrc" # send the setup script to the remote machine. scp "$SITE_PATH/btcpay.sh" "ubuntu@$FQDN:$REMOTE_HOME/btcpay_setup.sh" ssh "$BTCPAY_FQDN" "chmod 0744 $REMOTE_HOME/btcpay_setup.sh" + +# script is executed under sudo ssh "$BTCPAY_FQDN" "sudo bash -c $REMOTE_HOME/btcpay_setup.sh" -ssh "$BTCPAY_FQDN" "touch $REMOTE_HOME/btcpay.complete" + # lets give time for the containers to spin up sleep 10 \ No newline at end of file