Correctly go to env file dir before starting docker
This commit is contained in:
@@ -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
|
# Generate the docker compose in BTCPAY_DOCKER_COMPOSE
|
||||||
. ./build.sh
|
. ./build.sh
|
||||||
|
|
||||||
cd $BTCPAY_BASE_DIRECTORY
|
|
||||||
|
|
||||||
# Schedule for reboot
|
# Schedule for reboot
|
||||||
if [ -d "/etc/systemd/system" ]; then # Use systemd
|
if [ -d "/etc/systemd/system" ]; then # Use systemd
|
||||||
|
|
||||||
@@ -244,6 +242,7 @@ script
|
|||||||
end script" > /etc/init/start_containers.conf
|
end script" > /etc/init/start_containers.conf
|
||||||
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
|
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
|
||||||
initctl reload-configuration
|
initctl reload-configuration
|
||||||
|
cd "$(dirname $BTCPAY_ENV_FILE)"
|
||||||
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d
|
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d
|
||||||
echo "BTCPay Server started"
|
echo "BTCPay Server started"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user