diff --git a/core/update.php b/core/update.php
index db92c1a..e0b1e9d 100644
--- a/core/update.php
+++ b/core/update.php
@@ -304,7 +304,9 @@ function update_info_page() {
$output = '
Use this utility to update your database whenever a new release of Drupal or a module is installed.
For more detailed information, see the upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
';
$output .= "\n";
$output .= "- Back up your code. Hint: when backing up module code, do not leave that backup in the 'modules' or 'sites/*/modules' directories as this may confuse Drupal's auto-discovery mechanism.
\n";
- $output .= '- Put your site into maintenance mode.
' . "\n";
+ if (\Drupal::state()->get('system.maintenance_mode') != TRUE) {
+ $output .= '- Put your site into maintenance mode.
' . "\n";
+ }
$output .= "- Back up your database. This process will change your database values and in case of emergency you may need to revert to a backup.
\n";
$output .= "- Install your new files in the appropriate location, as described in the handbook.
\n";
$output .= "
\n";