improve update script
This commit is contained in:
+2
-1
@@ -11,11 +11,12 @@ do
|
|||||||
then
|
then
|
||||||
docker compose down --remove-orphans
|
docker compose down --remove-orphans
|
||||||
git reset --hard && git clean -fd
|
git reset --hard && git clean -fd
|
||||||
git pull > ./update/message
|
git fetch
|
||||||
if [[ -n "$branch" ]]
|
if [[ -n "$branch" ]]
|
||||||
then
|
then
|
||||||
git checkout -t origin/$branch || git checkout $branch
|
git checkout -t origin/$branch || git checkout $branch
|
||||||
fi
|
fi
|
||||||
|
git pull > ./update/message
|
||||||
IP=$(curl https://ipinfo.io/ip) VER=$(git describe --tags) docker compose up -d --force-recreate
|
IP=$(curl https://ipinfo.io/ip) VER=$(git describe --tags) docker compose up -d --force-recreate
|
||||||
bash $pwd/update/update.sh &
|
bash $pwd/update/update.sh &
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user