Browse Source
Always install docker-compose via the docker-compose-builder
tor-relay
nicolas.dorier
5 years ago
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
1 changed files with
7 additions and
14 deletions
-
btcpay-setup.sh
|
|
@ -400,20 +400,13 @@ if ! [[ -x "$(command -v docker)" ]] || ! [[ -x "$(command -v docker-compose)" ] |
|
|
|
fi |
|
|
|
|
|
|
|
if ! [[ -x "$(command -v docker-compose)" ]]; then |
|
|
|
if ! [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
if [[ "$(uname -m)" == "x86_64" ]]; then |
|
|
|
DOCKER_COMPOSE_DOWNLOAD="https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m`" |
|
|
|
echo "Trying to install docker-compose by downloading on $DOCKER_COMPOSE_DOWNLOAD ($(uname -m))" |
|
|
|
curl -L "$DOCKER_COMPOSE_DOWNLOAD" -o /usr/local/bin/docker-compose |
|
|
|
chmod +x /usr/local/bin/docker-compose |
|
|
|
elif $HAS_DOCKER; then |
|
|
|
echo "Trying to install docker-compose by using the docker-compose-builder ($(uname -m))" |
|
|
|
! [[ -d "dist" ]] && mkdir dist |
|
|
|
docker run --rm -v "$(pwd)/dist:/dist" btcpayserver/docker-compose-builder:1.23.2 |
|
|
|
mv dist/docker-compose /usr/local/bin/docker-compose |
|
|
|
chmod +x /usr/local/bin/docker-compose |
|
|
|
rm -rf "dist" |
|
|
|
fi |
|
|
|
if ! [[ "$OSTYPE" == "darwin"* ]] && $HAS_DOCKER; then |
|
|
|
echo "Trying to install docker-compose by using the docker-compose-builder ($(uname -m))" |
|
|
|
! [[ -d "dist" ]] && mkdir dist |
|
|
|
docker run --rm -v "$(pwd)/dist:/dist" btcpayserver/docker-compose-builder:1.23.2 |
|
|
|
mv dist/docker-compose /usr/local/bin/docker-compose |
|
|
|
chmod +x /usr/local/bin/docker-compose |
|
|
|
rm -rf "dist" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|