mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00
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:
parent
7e648d296d
commit
a703e26324
@ -38,12 +38,12 @@ else
|
||||
fi
|
||||
|
||||
# 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
|
||||
cd $(dirname $BTCPAY_DOCKER_COMPOSE)
|
||||
cd ..
|
||||
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"
|
||||
return
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user