mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Do not restart if update not needed (#758)
* Do not restart if update not needed * Do not restart if update not needed
This commit is contained in:
parent
ab24257f11
commit
211b3288f5
@ -210,6 +210,14 @@ then
|
||||
updateDatabase
|
||||
elif [ "$1" == "update" ]
|
||||
then
|
||||
CORE_ID=$(docker-compose ps -q admin)
|
||||
WEB_ID=$(docker-compose ps -q web)
|
||||
if docker inspect --format='{{.Config.Image}}:' $CORE_ID | grep -F ":$COREVERSION:" | grep -q ":[0-9.]*:$" &&
|
||||
docker inspect --format='{{.Config.Image}}:' $WEB_ID | grep -F ":$WEBVERSION:" | grep -q ":[0-9.]*:$"
|
||||
then
|
||||
echo "Update not needed"
|
||||
exit
|
||||
fi
|
||||
dockerComposeDown
|
||||
update withpull
|
||||
restart
|
||||
|
Loading…
Reference in New Issue
Block a user