diff --git a/scripts/run.sh b/scripts/run.sh index 83e7e99b8..c47bec787 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -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