From 2e0a9376af043b6707ca19e55eb6ef6128d7883e Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 13 Mar 2019 17:44:10 +0900 Subject: [PATCH] btcpay-update.sh self update --- btcpay-update.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/btcpay-update.sh b/btcpay-update.sh index 4e771f8..0f0b2fe 100755 --- a/btcpay-update.sh +++ b/btcpay-update.sh @@ -14,8 +14,13 @@ if [[ $BTCPAY_DOCKER_COMPOSE != *docker-compose.generated.yml ]]; then exit fi -cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" -git pull --force +cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" + +if [[ "$1" != "--skip-git-pull" ]]; then + git pull --force + exec "btcpay-update.sh" --skip-git-pull + return +fi if ! [ -f "/etc/docker/daemon.json" ]; then echo "{