From 97eefe38678289334c01557d99fb0ec43eaa95a4 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 27 Nov 2018 11:41:58 +0900 Subject: [PATCH] Revert "do not need to install curl, as get-docker.sh install it for us" This reverts commit 8e1ad95ad10d3db59a22f3568bdd08ebd867ad11. --- btcpay-setup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/btcpay-setup.sh b/btcpay-setup.sh index 641e77b..0881af1 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -216,6 +216,15 @@ echo -e "BTCPay Server docker-compose parameters saved in $BTCPAY_ENV_FILE\n" . /etc/profile.d/btcpay-env.sh if ! [ -x "$(command -v docker)" ] || ! [ -x "$(command -v docker-compose)" ]; then + if ! [ -x "$(command -v curl)" ]; then + apt-get update 2>error + apt-get install -y \ + curl \ + apt-transport-https \ + ca-certificates \ + software-properties-common \ + 2>error + fi if ! [ -x "$(command -v docker)" ]; then echo "Trying to install docker..." curl -fsSL https://get.docker.com -o get-docker.sh