update docker before Nextcloud

This commit is contained in:
Daniel Hansson 2017-06-02 17:58:04 +02:00 committed by GitHub
parent cae72f5cc5
commit 2ec22baed9

View File

@ -44,6 +44,19 @@ then
service apache2 restart
fi
# Update docker images
if [ "$(docker image inspect onlyoffice/documentserver >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
then
echo "Updating Docker container for OnlyOffice..."
echo "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..."
echo "docker pull collabora/code"
fi
# Cleanup un-used packages
apt autoremove -y
apt autoclean
@ -272,19 +285,6 @@ bash "$SECURE"
# Repair
sudo -u www-data php "$NCPATH"/occ maintenance:repair
# Update docker images
if [ "$(docker image inspect onlyoffice/documentserver >/dev/null 2>&1 && echo yes || echo no)" == "yes" ]
then
echo "Updating Docker container for OnlyOffice..."
echo "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..."
echo "docker pull collabora/code"
fi
CURRENTVERSION_after=$(sudo -u www-data php "$NCPATH"/occ status | grep "versionstring" | awk '{print $3}')
if [[ "$NCVERSION" == "$CURRENTVERSION_after" ]]
then