1
0

do not apt-get if curl is already installed

This commit is contained in:
nicolas.dorier
2018-11-27 11:23:50 +09:00
parent 50c58f5ba6
commit 6eb9a46d18

View File

@@ -216,13 +216,15 @@ echo -e "BTCPay Server docker-compose parameters saved in $BTCPAY_ENV_FILE\n"
. /etc/profile.d/btcpay-env.sh . /etc/profile.d/btcpay-env.sh
if ! [ -x "$(command -v docker)" ] || ! [ -x "$(command -v docker-compose)" ]; then if ! [ -x "$(command -v docker)" ] || ! [ -x "$(command -v docker-compose)" ]; then
apt-get update 2>error if ! [ -x "$(command -v curl)" ]; then
apt-get install -y \ apt-get update 2>error
curl \ apt-get install -y \
apt-transport-https \ curl \
ca-certificates \ apt-transport-https \
software-properties-common \ ca-certificates \
2>error software-properties-common \
2>error
fi
if ! [ -x "$(command -v docker)" ]; then if ! [ -x "$(command -v docker)" ]; then
echo "Trying to install docker..." echo "Trying to install docker..."
curl -fsSL https://get.docker.com -o get-docker.sh curl -fsSL https://get.docker.com -o get-docker.sh