diff --git a/scripts/upgrade b/scripts/upgrade index 5313109..0d2af2d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -274,6 +274,12 @@ then # Then remove the config file ynh_secure_remove --file="$nc_conf" + # Occasionally new mimetypes are added to better handle certain file types. + # Migrating the mimetypes take a long time on larger instances + # so this is not done automatically during upgrades. + # Use the command `occ maintenance:repair --include-expensive` to perform the migrations. + exec_occ maintenance:repair --include-expensive + #================================================= # ALLOW USERS TO DISCONNECT FROM NEXTCLOUD #=================================================