mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-13 05:20:40 +02:00
Run dockerd manually if ischroot is detected
This commit is contained in:
parent
974b0a37e1
commit
4841b45a57
@ -311,6 +311,14 @@ if ! [ -x "$(command -v docker-compose)" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
if $START && [ -x "$(command -v ischroot)" ] && ischroot; then
|
||||
echo "chroot detected, running dockerd in background..."
|
||||
dockerd &
|
||||
echo "Waiting /var/run/docker.sock to be created..."
|
||||
while [ ! -f "/var/run/docker.sock" ]; do sleep 1; done
|
||||
echo "/var/run/docker.sock is created"
|
||||
fi
|
||||
|
||||
# Generate the docker compose in BTCPAY_DOCKER_COMPOSE
|
||||
. ./build.sh
|
||||
|
||||
@ -406,4 +414,9 @@ fi
|
||||
cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker"
|
||||
install_tooling
|
||||
|
||||
if $START && [ -x "$(command -v ischroot)" ] && ischroot; then
|
||||
echo "Killing dockerd in the background..."
|
||||
kill %-
|
||||
fi
|
||||
|
||||
cd $ORIGINAL_DIRECTORY
|
||||
|
Loading…
Reference in New Issue
Block a user