From ef510aa506748a2f7cce7a43caca52cd0b1164c3 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 18 May 2018 01:32:48 +0900 Subject: [PATCH] Correctly go to env file dir before starting docker --- btcpay-setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/btcpay-setup.sh b/btcpay-setup.sh index d39462f..92383f1 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -195,8 +195,6 @@ echo -e "BTCPay Server docker-compose parameters saved in $BTCPAY_ENV_FILE\n" # Generate the docker compose in BTCPAY_DOCKER_COMPOSE . ./build.sh -cd $BTCPAY_BASE_DIRECTORY - # Schedule for reboot if [ -d "/etc/systemd/system" ]; then # Use systemd @@ -244,6 +242,7 @@ script end script" > /etc/init/start_containers.conf echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n" initctl reload-configuration + cd "$(dirname $BTCPAY_ENV_FILE)" docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d echo "BTCPay Server started" fi