From 7d12e5c9727137dd9272c8a42c80c9c2341cd207 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 21 Mar 2024 01:36:11 +0400 Subject: [PATCH] improve update script --- update/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update/update.sh b/update/update.sh index 6cf868e..066fc65 100644 --- a/update/update.sh +++ b/update/update.sh @@ -11,11 +11,12 @@ do then docker compose down --remove-orphans git reset --hard && git clean -fd - git pull > ./update/message + git fetch if [[ -n "$branch" ]] then git checkout -t origin/$branch || git checkout $branch fi + git pull > ./update/message IP=$(curl https://ipinfo.io/ip) VER=$(git describe --tags) docker compose up -d --force-recreate bash $pwd/update/update.sh & exit 0