improve update script

This commit is contained in:
mercury
2024-03-21 01:36:11 +04:00
parent 2efcea9dbe
commit 7d12e5c972
+2 -1
View File
@@ -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