diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index a36acb85a..8fa7b3160 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -100,6 +100,9 @@ if [ -f /reinstall ]; then rm /reinstall bashio::log.red "... issue with installation detected, reinstallation will proceed" + # Check container version + CONTAINERVERSION="$(cat /nextcloudversion)" + # Redownload nextcloud if wrong version if [[ ! "$CURRENTVERSION" == "$CONTAINERVERSION" ]]; then bashio::log.red "... version installed is : $CURRENTVERSION and version bundled is : $CONTAINERVERSION, need to redownload files"