Skip to content

Commit

Permalink
Make sure the instance is in maintenance mode before reseting opcache…
Browse files Browse the repository at this point in the history
… and upgrading.

Signed-off-by: Mateus de Lima Oliveira <mateus@ativarsoft.com>
  • Loading branch information
ativarsoft committed Sep 19, 2022
1 parent c2a90ca commit ba8e8b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -973,10 +973,10 @@ public static function handleRequest() {
self::checkMaintenanceMode($systemConfig);

if (\OCP\Util::needUpgrade()) {
if (function_exists('opcache_reset')) {
opcache_reset();
}
if (!((bool) $systemConfig->getValue('maintenance', false))) {
if (function_exists('opcache_reset')) {
opcache_reset();
}
self::printUpgradePage($systemConfig);
exit();
}
Expand Down

0 comments on commit ba8e8b5

Please sign in to comment.