Index: update.php
===================================================================
RCS file: /cvs/drupal/drupal/update.php,v
retrieving revision 1.258
diff -u -r1.258 update.php
--- update.php	9 Sep 2008 13:33:19 -0000	1.258
+++ update.php	17 Sep 2008 18:31:54 -0000
@@ -284,7 +284,11 @@
 
 function update_batch() {
   global $base_url;
-
+  $site_offline = variable_get('site_offline', FALSE);
+  if ($site_offline == FALSE) {
+    variable_set('site_offline', TRUE);
+  }
+  
   $operations = array();
   // Set the installed version so updates start at the correct place.
   foreach ($_POST['start'] as $module => $version) {
@@ -308,6 +312,9 @@
   );
   batch_set($batch);
   batch_process($base_url . '/update.php?op=results', $base_url . '/update.php');
+  if ($site_offline == FALSE) {
+    variable_set('site_offline', FALSE);
+  }
 }
 
 function update_finished($success, $results, $operations) {
