Let's update everything!

Fixes https://github.com/nextcloud/vm/issues/312
This commit is contained in:
Daniel Hansson 2017-08-10 20:21:13 +02:00 committed by GitHub
parent e2e0d478dc
commit 5744cd90c9

View File

@ -41,18 +41,19 @@ then
fi
# Update docker images
# This updates ALL Docker images: docker images | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker pull
if [ "$(docker image inspect onlyoffice/documentserver >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
then
echo "Updating Docker container for OnlyOffice..."
docker pull onlyoffice/documentserver
fi
if [ "$(docker image inspect collabora/code >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
then
echo "Updating Docker container for Collabora..."
docker pull collabora/code
fi
# This updates ALL Docker images:
docker images | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker pull
#if [ "$(docker image inspect onlyoffice/documentserver >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
#then
# echo "Updating Docker container for OnlyOffice..."
# docker pull onlyoffice/documentserver
#fi
#
#if [ "$(docker image inspect collabora/code >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
#then
# echo "Updating Docker container for Collabora..."
# docker pull collabora/code
#fi
# Cleanup un-used packages
apt autoremove -y