From eec49db38608e2a676db101b9901a8118e722d18 Mon Sep 17 00:00:00 2001 From: "J. Maurice" Date: Fri, 26 Jul 2019 11:59:27 +0900 Subject: [PATCH] Detect if Raspbian Linux and patch docker installation script (#176) --- btcpay-setup.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/btcpay-setup.sh b/btcpay-setup.sh index bd26b3c..c4842ed 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -358,13 +358,20 @@ if ! [[ -x "$(command -v docker)" ]] || ! [[ -x "$(command -v docker-compose)" ] brew install docker brew link docker fi - else - # Not Mac OS - echo "Trying to install docker..." - curl -fsSL https://get.docker.com -o get-docker.sh - chmod +x get-docker.sh - sh get-docker.sh - rm get-docker.sh + elif grep -i raspbian /etc/*-release >/dev/null 2>&1;then + # Raspbian Linux + echo "Trying to install docker using Raspbian 10 patch..." + curl -fsSL https://get.docker.com|sed -e 's/buster/stretch/' > get-docker.sh + chmod +x get-docker.sh + sh get-docker.sh + rm get-docker.sh + else + # Not Raspbian Linux or Mac OS + echo "Trying to install docker..." + curl -fsSL https://get.docker.com -o get-docker.sh + chmod +x get-docker.sh + sh get-docker.sh + rm get-docker.sh fi elif [[ "$(uname -m)" == "aarch64" ]]; then echo "Trying to install docker for armv7 on a aarch64 board..."