1
0

Fix CentOS7 Compatibility (#492)

* Update btcpay-setup.sh

fixes: Installation error with docker in Centos 7

* better way to check git dir

* Update btcpay-setup.sh

* Update btcpay-setup.sh
This commit is contained in:
Md. Sumon Islam
2022-06-27 12:07:16 +06:00
committed by GitHub
parent 7e648d296d
commit a703e26324

View File

@@ -38,12 +38,12 @@ else
fi fi
# Verify we are in right folder. If we are not, let's go in the parent folder of the current docker-compose. # Verify we are in right folder. If we are not, let's go in the parent folder of the current docker-compose.
if ! git -C . rev-parse &> /dev/null || [ ! -d "Generated" ]; then if ! git rev-parse --git-dir &> /dev/null || [ ! -d "Generated" ]; then
if [[ ! -z $BTCPAY_DOCKER_COMPOSE ]]; then if [[ ! -z $BTCPAY_DOCKER_COMPOSE ]]; then
cd $(dirname $BTCPAY_DOCKER_COMPOSE) cd $(dirname $BTCPAY_DOCKER_COMPOSE)
cd .. cd ..
fi fi
if ! git -C . rev-parse || [[ ! -d "Generated" ]]; then if ! git rev-parse || [[ ! -d "Generated" ]]; then
echo "You must run this script inside the git repository of btcpayserver-docker" echo "You must run this script inside the git repository of btcpayserver-docker"
return return
fi fi