improve update script
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user