Allow to view progress view while update is running

This commit is contained in:
Jan Böhmer 2026-02-03 20:34:03 +01:00
parent cad5261aba
commit c34acfe523
2 changed files with 7 additions and 2 deletions

View file

@ -62,6 +62,11 @@ readonly class MaintenanceModeSubscriber implements EventSubscriberInterface
return;
}
//Allow to view the progress page
if (preg_match('#^/\w{2}/system/update-manager/progress#', $event->getRequest()->getPathInfo())) {
return;
}
// Allow CLI requests
if (PHP_SAPI === 'cli') {
return;

View file

@ -29,7 +29,7 @@
{{ parent() }}
{# Auto-refresh while update is running - also refresh when 'starting' status #}
{% if not progress or progress.status == 'running' or progress.status == 'starting' %}
<meta http-equiv="refresh" content="2">
<meta http-equiv="refresh" content="5">
{% endif %}
{% endblock %}
@ -189,7 +189,7 @@
<script nonce="{{ csp_nonce('script') }}">
setTimeout(function() {
window.location.reload();
}, 2000);
}, 5000);
</script>
{% endif %}
</div>